Skip to content

Commit 10e2ec2

Browse files
authored
chore: skip truncating table in this release (#19300)
1 parent fe91b44 commit 10e2ec2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mobile/lib/utils/migration.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ Future<void> migrateDatabaseIfNeeded(Isar db) async {
5757
}
5858

5959
final shouldTruncate = version < 8 || version < targetVersion;
60+
6061
if (shouldTruncate) {
62+
if (targetVersion == 12) {
63+
await Store.put(StoreKey.version, targetVersion);
64+
return;
65+
}
66+
6167
await _migrateTo(db, targetVersion);
6268
}
6369
}

0 commit comments

Comments
 (0)