[mob][photos] Don't drop cluster summaries when dropping feedback

This commit is contained in:
laurenspriem
2024-05-07 11:22:44 +05:30
parent bd495c3860
commit 68be7f69d8

View File

@@ -988,7 +988,7 @@ class FaceMLDataDB {
}
}
/// WARNING: This will delete ALL data in the database! Only use this for debug/testing purposes!
/// WARNING: This will delete ALL data in the tables! Only use this for debug/testing purposes!
Future<void> dropFeedbackTables() async {
try {
final db = await instance.asyncDB;
@@ -997,12 +997,10 @@ class FaceMLDataDB {
await db.execute(deletePersonTable);
await db.execute(dropClusterPersonTable);
await db.execute(dropNotPersonFeedbackTable);
await db.execute(dropClusterSummaryTable);
// Recreate the tables
await db.execute(createClusterPersonTable);
await db.execute(createNotPersonFeedbackTable);
await db.execute(createClusterSummaryTable);
} catch (e) {
_logger.severe('Error dropping feedback tables', e);
}