soft reset

This commit is contained in:
shenlong-tanwen
2026-01-28 18:19:36 +05:30
parent 55622b9db0
commit da7554c92b
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,6 @@ Future<void> migrateDatabaseIfNeeded(Isar db, Drift drift) async {
}
if (version < 21) {
await syncStreamRepository.reset();
await Store.put(StoreKey.shouldResetSync, true);
}

View File

@@ -1,7 +1,8 @@
import { Kysely, sql } from 'kysely';
export async function up(db: Kysely<any>): Promise<void> {
await sql`UPDATE "session" SET "isPendingSyncReset" = true`.execute(db);
await sql`UPDATE "session" SET "isPendingSyncReset" = false`.execute(db);
await sql`TRUNCATE TABLE "session_sync_checkpoint"`.execute(db);
}
export async function down(): Promise<void> {}