removed DB upgrade temporary code for v1.12.4 users

This commit is contained in:
Thibault Deckers 2025-04-06 23:10:16 +02:00
parent 5598b0a69d
commit ff4c49718e

View file

@ -496,13 +496,8 @@ class LocalMediaDbUpgrader {
static Future<void> _upgradeFrom14(Database db) async {
debugPrint('upgrading DB from v14');
// no schema changes, but v1.12.4 may have corrupted the DB,
// so we clear rebuildable tables
final tables = [dateTakenTable, metadataTable, addressTable, trashTable, videoPlaybackTable];
await Future.forEach(tables, (table) async {
if (await db.tableExists(table)) {
await db.delete(table, where: '1');
}
});
// transitional upgrade previously used to sanitize rebuildable tables
// (dateTakenTable, metadataTable, addressTable, trashTable, videoPlaybackTable)
// for users with a potentially corrupted DB following upgrade to v1.12.4
}
}