fix migration from previous app versions

This commit is contained in:
tibbi 2022-10-09 20:04:47 +02:00
parent 3a6aa2e96e
commit fd9c7b3787
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ abstract class AppsDatabase : RoomDatabase() {
private val MIGRATION_1_2 = object : Migration(1, 2) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("ALTER TABLE home_screen_grid_items ADD COLUMN intent TEXT default '' NOT NULL")
database.execSQL("ALTER TABLE home_screen_grid_items ADD COLUMN shortcut_id TEXT default '' NOT NULL")
database.execSQL("ALTER TABLE home_screen_grid_items ADD COLUMN icon BLOB")
}
}