indices must be dropped on every migration? that's weird :(

This commit is contained in:
Sergey Zorchenko 2022-06-21 12:49:44 +03:00
parent 126c90024b
commit 34a3b1146c

View file

@ -74,6 +74,8 @@ open class DatabaseModule {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("ALTER TABLE `carbs` ADD COLUMN `notes` TEXT")
database.execSQL("ALTER TABLE `boluses` ADD COLUMN `notes` TEXT")
// Custom indexes must be dropped on migration to pass room schema checking after upgrade
dropCustomIndexes(database)
}
}