calidion
01/30/2025, 5:45 PMRoom cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number. You can simply fix this by increasing the version number. Expected identity hash: 38767ca95e25ff4f114395416eb5f824, found: b6766d3311ce100dfdedbb4695613e5b
creation code, useless even when i deleted the db file.
fun getDatabaseBuilder(): RoomDatabase.Builder<AppDatabase> {
val dbFile = File(System.getProperty("java.io.tmpdir"), "room.db")
dbFile.delete()
return Room.databaseBuilder<AppDatabase>(
name = dbFile.absolutePath,
)
}
fun getRoomDatabase(
builder: RoomDatabase.Builder<AppDatabase>
): AppDatabase {
return builder
// .addMigrations(MIGRATIONS)
// .fallbackToDestructiveMigrationOnDowngrade(true)
.setDriver(BundledSQLiteDriver())
.setQueryCoroutineContext(<http://Dispatchers.IO|Dispatchers.IO>)
.build()
}
calidion
01/30/2025, 6:18 PMSeri
01/30/2025, 7:10 PMSeri
01/30/2025, 7:10 PMcalidion
01/30/2025, 7:19 PMcalidion
01/30/2025, 7:20 PMcalidion
01/30/2025, 7:20 PMcalidion
01/30/2025, 7:42 PMcalidion
01/30/2025, 9:10 PMcalidion
01/31/2025, 5:49 AMcalidion
01/31/2025, 5:49 AM