feat: Completed with Starter MainLifts
This commit is contained in:
parent
311d764a4d
commit
2609446e9a
15 changed files with 642 additions and 491 deletions
|
|
@ -13,17 +13,17 @@ class AppDatabase extends _$AppDatabase {
|
|||
AppDatabase() : super(_openConnection());
|
||||
|
||||
@override
|
||||
int get schemaVersion => 2;
|
||||
int get schemaVersion => 3;
|
||||
|
||||
@override
|
||||
MigrationStrategy get migration => MigrationStrategy(
|
||||
onCreate: (Migrator m) async {
|
||||
await m.createAll();
|
||||
},
|
||||
onUpgrade: (Migrator m, int from, int to) async {
|
||||
if (from < 2) {
|
||||
await m.createTable(quests);
|
||||
}
|
||||
if (from < 3) {
|
||||
await m.addColumn(users, users.exerciseVariants);
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue