pull/1274/head
gedoor 3 years ago
parent 02648dd8b8
commit 102924b5c8
  1. 1
      app/src/main/java/io/legado/app/data/AppDatabase.kt

@ -50,7 +50,6 @@ abstract class AppDatabase : RoomDatabase() {
fun createDatabase(context: Context) = fun createDatabase(context: Context) =
Room.databaseBuilder(context, AppDatabase::class.java, DATABASE_NAME) Room.databaseBuilder(context, AppDatabase::class.java, DATABASE_NAME)
.fallbackToDestructiveMigration()
.addMigrations(*DatabaseMigrations.migrations) .addMigrations(*DatabaseMigrations.migrations)
.allowMainThreadQueries() .allowMainThreadQueries()
.addCallback(dbCallback) .addCallback(dbCallback)

Loading…
Cancel
Save