|
|
@ -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) |
|
|
|