Skip to content

High performance self-hosted photo and video management solution.

chore: skip truncating table in this release (#19300)

Alex10e2ec284103
diff --git a/mobile/lib/utils/migration.dart b/mobile/lib/utils/migration.dart
index b20950c089..6bcf92d402 100644
--- a/mobile/lib/utils/migration.dart
+++ b/mobile/lib/utils/migration.dart
@@ -57,7 +57,13 @@ Future<void> migrateDatabaseIfNeeded(Isar db) async {
}
final shouldTruncate = version < 8 || version < targetVersion;
+
if (shouldTruncate) {
+ if (targetVersion == 12) {
+ await Store.put(StoreKey.version, targetVersion);
+ return;
+ }
+
await _migrateTo(db, targetVersion);
}
}