mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
Fix query and path for playlist #1
The query was erroneously put into the path column; also change the query for 1 = 1 instead of disabled = 0 which is redundant.
This commit is contained in:
parent
b5b9f92d97
commit
21098d4c89
4
src/db.c
4
src/db.c
@ -3052,7 +3052,7 @@ db_perthread_deinit(void)
|
||||
|
||||
#define Q_PL1 \
|
||||
"INSERT INTO playlists (id, title, type, query, db_timestamp, path, idx, special_id)" \
|
||||
" VALUES(1, 'Library', 1, '1', 0, 'disabled = 0', 0, 0);"
|
||||
" VALUES(1, 'Library', 1, '1 = 1', 0, '', 0, 0);"
|
||||
|
||||
#define Q_PL2 \
|
||||
"INSERT INTO playlists (id, title, type, query, db_timestamp, path, idx, special_id)" \
|
||||
@ -3196,7 +3196,7 @@ static struct db_init_query db_upgrade_v3_queries[] =
|
||||
"ALTER TABLE playlists ADD COLUMN special_id INTEGER NOT NULL DEFAULT 0;"
|
||||
|
||||
#define U_V4_PL1 \
|
||||
"UPDATE playlists SET query = 'disabled = 0' WHERE id = 1;"
|
||||
"UPDATE playlists SET query = '1 = 1' WHERE id = 1;"
|
||||
|
||||
#define U_V4_PL2 \
|
||||
"INSERT INTO playlists (title, type, query, db_timestamp, path, idx, special_id)" \
|
||||
|
Loading…
Reference in New Issue
Block a user