indices must be dropped on every migration? that's weird :(
This commit is contained in:
parent
126c90024b
commit
34a3b1146c
|
@ -74,6 +74,8 @@ open class DatabaseModule {
|
||||||
override fun migrate(database: SupportSQLiteDatabase) {
|
override fun migrate(database: SupportSQLiteDatabase) {
|
||||||
database.execSQL("ALTER TABLE `carbs` ADD COLUMN `notes` TEXT")
|
database.execSQL("ALTER TABLE `carbs` ADD COLUMN `notes` TEXT")
|
||||||
database.execSQL("ALTER TABLE `boluses` 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue