|
|
@ -51,7 +51,7 @@ 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() |
|
|
|
.fallbackToDestructiveMigration() |
|
|
|
.addMigrations(*DatabaseMigration.migrations) |
|
|
|
.addMigrations(*DatabaseMigrations.migrations) |
|
|
|
.allowMainThreadQueries() |
|
|
|
.allowMainThreadQueries() |
|
|
|
.addCallback(dbCallback) |
|
|
|
.addCallback(dbCallback) |
|
|
|
.build() |
|
|
|
.build() |
|
|
|