From 47fa1cbbedf411ff8f4bfe191f405b50ec450e4d Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Wed, 15 Feb 2023 22:08:52 +0100 Subject: [PATCH] Fix database migration --- .../de/mm20/launcher2/database/migrations/Migration_19_20.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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