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

@ -50,6 +50,7 @@ abstract class AppDatabase : RoomDatabase() {
fun createDatabase(context: Context) =
Room.databaseBuilder(context, AppDatabase::class.java, DATABASE_NAME)
.fallbackToDestructiveMigrationFrom(1, 2, 3, 4, 5, 6, 7, 8, 9)
.addMigrations(*DatabaseMigrations.migrations)
.allowMainThreadQueries()
.addCallback(dbCallback)

Loading…
Cancel
Save