Don't delete hand-crafted static playlists (type 0) on full reload

This commit is contained in:
Ron Pedde 2006-12-31 21:22:46 +00:00
parent 29dc837b4b
commit f7b2e3204e
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ int db_sqlite2_event(int event_type) {
db_sqlite2_exec(NULL,E_DBG,"drop table songs");
// db_sqlite2_exec(NULL,E_DBG,"drop table playlists");
db_sqlite2_exec(NULL,E_DBG,"delete from playlists where not type=1");
db_sqlite2_exec(NULL,E_DBG,"delete from playlists where not type=1 and not type=0");
db_sqlite2_exec(NULL,E_DBG,"drop table playlistitems");
db_sqlite2_exec(NULL,E_DBG,"drop table config");

View File

@ -379,7 +379,7 @@ int db_sqlite3_event(int event_type) {
db_sqlite3_exec(NULL,E_DBG,"drop table songs");
// db_sqlite3_exec(NULL,E_DBG,"drop table playlists");
db_sqlite3_exec(NULL,E_DBG,"delete from playlists where not type=1");
db_sqlite3_exec(NULL,E_DBG,"delete from playlists where not type=1 and not type=0");
db_sqlite3_exec(NULL,E_DBG,"drop table playlistitems");
db_sqlite3_exec(NULL,E_DBG,"drop table config");