Fix new db tables not truncated

This commit is contained in:
Ming Ming 2023-07-23 03:07:49 +08:00
parent 97d2513ded
commit b017461887
2 changed files with 4 additions and 0 deletions

View file

@ -729,6 +729,8 @@ extension SqliteDbExtension on SqliteDb {
await delete(faceRecognitionPersons).go();
await delete(ncAlbums).go();
await delete(ncAlbumItems).go();
await delete(recognizeFaces).go();
await delete(recognizeFaceItems).go();
// reset the auto increment counter
await customStatement("UPDATE sqlite_sequence SET seq=0;");

View file

@ -322,6 +322,8 @@ Future<void> _truncate() async {
"face_recognition_persons",
"nc_albums",
"nc_album_items",
"recognize_faces",
"recognize_face_items",
});
for (final t in tables) {
expect(