diff --git a/app/src/main/kotlin/com/simplemobiletools/musicplayer/databases/SongsDatabase.kt b/app/src/main/kotlin/com/simplemobiletools/musicplayer/databases/SongsDatabase.kt index 4dce88df..727bbbbc 100644 --- a/app/src/main/kotlin/com/simplemobiletools/musicplayer/databases/SongsDatabase.kt +++ b/app/src/main/kotlin/com/simplemobiletools/musicplayer/databases/SongsDatabase.kt @@ -196,7 +196,7 @@ abstract class SongsDatabase : RoomDatabase() { execSQL("ALTER TABLE tracks ADD COLUMN genre TEXT NOT NULL DEFAULT ''") execSQL("ALTER TABLE tracks ADD COLUMN genre_id INTEGER NOT NULL DEFAULT 0") - execSQL("CREATE TABLE `genres` (`id` INTEGER NOT NULL PRIMARY KEY, `title` TEXT NOT NULL, `track_cnt` INTEGER NOT NULL, `album_art TEXT NOT NULL`)") + execSQL("CREATE TABLE `genres` (`id` INTEGER NOT NULL PRIMARY KEY, `title` TEXT NOT NULL, `track_cnt` INTEGER NOT NULL, `album_art` TEXT NOT NULL)") execSQL("CREATE UNIQUE INDEX IF NOT EXISTS `index_genres_id` ON `genres` (`id`)") } }