1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-15 07:14:42 +02:00

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

This commit is contained in:
Alex
2025-06-19 11:11:18 -05:00
committed by GitHub
parent fe91b44ab9
commit 10e2ec2841

View File

@ -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);
}
}