mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
chore: skip truncating table in this release (#19300)
This commit is contained in:
parent
fe91b44ab9
commit
10e2ec2841
@ -57,7 +57,13 @@ Future<void> migrateDatabaseIfNeeded(Isar db) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final shouldTruncate = version < 8 || version < targetVersion;
|
final shouldTruncate = version < 8 || version < targetVersion;
|
||||||
|
|
||||||
if (shouldTruncate) {
|
if (shouldTruncate) {
|
||||||
|
if (targetVersion == 12) {
|
||||||
|
await Store.put(StoreKey.version, targetVersion);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
await _migrateTo(db, targetVersion);
|
await _migrateTo(db, targetVersion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user