From 39cc7e7a033db819eef79be45e941d6749ea3286 Mon Sep 17 00:00:00 2001 From: Prasanna Anbazhagan Date: Tue, 2 Jan 2024 09:53:59 +0530 Subject: [PATCH] Save commit --- lib/api/db/app_database.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {