diff --git a/lib/api/db/app_database.dart b/lib/api/db/app_database.dart index a6831af..006941b 100644 --- a/lib/api/db/app_database.dart +++ b/lib/api/db/app_database.dart @@ -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>>> getBackup() async {