feat: Completed with Starter MainLifts

This commit is contained in:
Patryk Hegenberg 2025-12-07 12:03:42 +01:00
parent 311d764a4d
commit 2609446e9a
15 changed files with 642 additions and 491 deletions

View file

@ -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);
}
},
);
}