mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-12 15:18:38 -05:00
[client] db migration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user