From 4c10282c946850fb2d45d009918d48a689bb4945 Mon Sep 17 00:00:00 2001 From: SayantanRC Date: Wed, 27 Apr 2022 15:10:41 +0530 Subject: [PATCH] App lounge: FusedDatabase - upgrade version number and add fallbackToDestructiveMigration() --- .../java/foundation/e/apps/manager/database/DatabaseModule.kt | 2 +- .../java/foundation/e/apps/manager/database/FusedDatabase.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/foundation/e/apps/manager/database/DatabaseModule.kt b/app/src/main/java/foundation/e/apps/manager/database/DatabaseModule.kt index e6fe0f34f..678c91003 100644 --- a/app/src/main/java/foundation/e/apps/manager/database/DatabaseModule.kt +++ b/app/src/main/java/foundation/e/apps/manager/database/DatabaseModule.kt @@ -23,7 +23,7 @@ object DatabaseModule { context, FusedDatabase::class.java, DATABASE_NAME - ).build() + ).fallbackToDestructiveMigration().build() } @Singleton diff --git a/app/src/main/java/foundation/e/apps/manager/database/FusedDatabase.kt b/app/src/main/java/foundation/e/apps/manager/database/FusedDatabase.kt index 785497e01..51f106117 100644 --- a/app/src/main/java/foundation/e/apps/manager/database/FusedDatabase.kt +++ b/app/src/main/java/foundation/e/apps/manager/database/FusedDatabase.kt @@ -6,7 +6,7 @@ import androidx.room.TypeConverters import foundation.e.apps.manager.database.fusedDownload.FusedDownload import foundation.e.apps.manager.database.fusedDownload.FusedDownloadDAO -@Database(entities = [FusedDownload::class], version = 1, exportSchema = false) +@Database(entities = [FusedDownload::class], version = 2, exportSchema = false) @TypeConverters(FusedConverter::class) abstract class FusedDatabase : RoomDatabase() { -- GitLab