Properly enclose table name with backticks
This commit is contained in:
parent
fd60eb2a88
commit
a8f00762eb
1 changed files with 1 additions and 1 deletions
|
@ -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`)")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue