From 10e2ec2841030b31a54a143ab257ecdae4d923d7 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 19 Jun 2025 11:11:18 -0500 Subject: [PATCH] chore: skip truncating table in this release (#19300) --- mobile/lib/utils/migration.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mobile/lib/utils/migration.dart b/mobile/lib/utils/migration.dart index b20950c089..6bcf92d402 100644 --- a/mobile/lib/utils/migration.dart +++ b/mobile/lib/utils/migration.dart @@ -57,7 +57,13 @@ Future 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); } }