Properly enclose table name with backticks

This commit is contained in:
Naveen 2023-08-30 16:22:21 +05:30
parent fd60eb2a88
commit a8f00762eb
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3

View file

@ -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`)")
}
}