Fix database migration
This commit is contained in:
parent
10fa8aac7e
commit
47fa1cbbed
@ -16,8 +16,8 @@ class Migration_19_20: Migration(19, 20) {
|
||||
`themed` INTEGER NOT NULL DEFAULT 0,
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT)
|
||||
""")
|
||||
database.execSQL("INSERT INTO `Icons` (`type`, `componentName`, `drawable`, `iconPack`, `themed`, `name`) SELECT `type`, `componentName`, `drawable`, `iconPack`, null FROM `Icons_old`")
|
||||
database.execSQL("INSERT INTO `Icons` (`type`, `componentName`, `drawable`, `iconPack`, `themed`, `name`) SELECT `type`, `componentName`, `drawable`, `iconPack`, 0, null FROM `Icons_old`")
|
||||
database.execSQL("DROP TABLE `Icons_old`")
|
||||
database.execSQL("ALTER TABLE `IconPacks` ADD COLUMN `themed` INTEGER NOT NULL DEFAULT 0")
|
||||
database.execSQL("ALTER TABLE `IconPack` ADD COLUMN `themed` INTEGER NOT NULL DEFAULT 0")
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user