Pablo
12/03/2024, 3:03 PM.addMigrations(MIGRATIONS) in official documentation sample? MIGRATIONS does not exist
https://developer.android.com/kotlin/multiplatform/room
fun getRoomDatabase(
builder: RoomDatabase.Builder<AppDatabase>
): AppDatabase {
return builder
.addMigrations(MIGRATIONS)
.fallbackToDestructiveMigrationOnDowngrade()
.setDriver(BundledSQLiteDriver())
.setQueryCoroutineContext(Dispatchers.IO)
.build()
}
Also, fallbackToDestructiveMigrationOnDowngrade guives this exception: No value passed for parameter 'dropAllTables'. Documentation is not very clear to be honestHristijan
12/03/2024, 4:36 PMMIGRATIONS is something you pass down as your own implementation