Skip to content

Commit

Permalink
Save commit
Browse files Browse the repository at this point in the history
  • Loading branch information
praslnx8 committed Jan 2, 2024
1 parent bcc8393 commit 39cc7e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/api/db/app_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ class AppDatabase extends _$AppDatabase {
AppDatabase._(super.e);

@override
int get schemaVersion => 2;
int get schemaVersion => 1;

@override
MigrationStrategy get migration =>
MigrationStrategy(onUpgrade: (m, from, to) async {
if (from == 1 && to == 2) {
m.createView(goalInvestmentEnrichedMappingView);
}
//Place your migrations here
}, onCreate: (m) async {
m.createAll();
});

Future<Map<String, List<Map<String, dynamic>>>> getBackup() async {
Expand Down

0 comments on commit 39cc7e7

Please sign in to comment.