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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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