mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +01:00
Fix new db tables not truncated
This commit is contained in:
parent
97d2513ded
commit
b017461887
2 changed files with 4 additions and 0 deletions
|
@ -729,6 +729,8 @@ extension SqliteDbExtension on SqliteDb {
|
||||||
await delete(faceRecognitionPersons).go();
|
await delete(faceRecognitionPersons).go();
|
||||||
await delete(ncAlbums).go();
|
await delete(ncAlbums).go();
|
||||||
await delete(ncAlbumItems).go();
|
await delete(ncAlbumItems).go();
|
||||||
|
await delete(recognizeFaces).go();
|
||||||
|
await delete(recognizeFaceItems).go();
|
||||||
|
|
||||||
// reset the auto increment counter
|
// reset the auto increment counter
|
||||||
await customStatement("UPDATE sqlite_sequence SET seq=0;");
|
await customStatement("UPDATE sqlite_sequence SET seq=0;");
|
||||||
|
|
|
@ -322,6 +322,8 @@ Future<void> _truncate() async {
|
||||||
"face_recognition_persons",
|
"face_recognition_persons",
|
||||||
"nc_albums",
|
"nc_albums",
|
||||||
"nc_album_items",
|
"nc_album_items",
|
||||||
|
"recognize_faces",
|
||||||
|
"recognize_face_items",
|
||||||
});
|
});
|
||||||
for (final t in tables) {
|
for (final t in tables) {
|
||||||
expect(
|
expect(
|
||||||
|
|
Loading…
Reference in a new issue