mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Don't delete hand-crafted static playlists (type 0) on full reload
This commit is contained in:
parent
29dc837b4b
commit
f7b2e3204e
@ -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");
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user