diff --git a/core/database/src/main/java/de/mm20/launcher2/database/migrations/Migration_19_20.kt b/core/database/src/main/java/de/mm20/launcher2/database/migrations/Migration_19_20.kt index 11161c60..12385f53 100644 --- a/core/database/src/main/java/de/mm20/launcher2/database/migrations/Migration_19_20.kt +++ b/core/database/src/main/java/de/mm20/launcher2/database/migrations/Migration_19_20.kt @@ -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") } } \ No newline at end of file