From 21098d4c8949c2591005b2b4c06adf00185d5ada Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Wed, 27 Jan 2010 18:29:59 +0100 Subject: [PATCH] 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. --- src/db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.c b/src/db.c index 1985917e..cf9db84d 100644 --- a/src/db.c +++ b/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)" \