Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81fcde0f authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

Merge branch '239-fix_crashing_db' into 'main'

App lounge: Fix App Lounge crash when upgrading from old version

See merge request !103
parents 7137bfc5 4c10282c
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -23,7 +23,7 @@ object DatabaseModule {
            context,
            context,
            FusedDatabase::class.java,
            FusedDatabase::class.java,
            DATABASE_NAME
            DATABASE_NAME
        ).build()
        ).fallbackToDestructiveMigration().build()
    }
    }


    @Singleton
    @Singleton
+1 −1
Original line number Original line Diff line number Diff line
@@ -6,7 +6,7 @@ import androidx.room.TypeConverters
import foundation.e.apps.manager.database.fusedDownload.FusedDownload
import foundation.e.apps.manager.database.fusedDownload.FusedDownload
import foundation.e.apps.manager.database.fusedDownload.FusedDownloadDAO
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)
@TypeConverters(FusedConverter::class)
abstract class FusedDatabase : RoomDatabase() {
abstract class FusedDatabase : RoomDatabase() {