[client] db migration

This commit is contained in:
Abhishek Shroff
2025-05-12 08:50:10 +05:30
parent dab1119f88
commit 59c5ebf622
+5 -1
View File
@@ -24,7 +24,7 @@ class AppDatabase extends _$AppDatabase {
AppDatabase.fromExecutor({required this.accountId, required QueryExecutor executor}) : super(executor);
@override
int get schemaVersion => 5;
int get schemaVersion => 6;
@override
MigrationStrategy get migration => MigrationStrategy(
@@ -50,6 +50,10 @@ class AppDatabase extends _$AppDatabase {
await m.create(resources);
await m.create(publinks);
}
if (from < 6) {
await m.drop(resources);
await m.create(resources);
}
},
);