mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
chore: skip truncating table in this release (#19300)
This commit is contained in:
parent
fe91b44ab9
commit
10e2ec2841
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue