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 e6fe0f34f5dfe4d046e5aab2a1a08299bbd251b2..678c91003e2b3d3e659c9f5a0cd2d45c13a627af 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 785497e01ff1f460b4b38ee66e1ba9bc11118ccf..51f106117d9c4efafdcc4ff51e2eb8c6c42da032 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() {