mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 05:34:58 -05:00
Include groups table in database purge
This commit is contained in:
5
src/db.c
5
src/db.c
@@ -703,12 +703,13 @@ db_purge_cruft(time_t ref)
|
|||||||
void
|
void
|
||||||
db_purge_all(void)
|
db_purge_all(void)
|
||||||
{
|
{
|
||||||
char *queries[4] =
|
char *queries[5] =
|
||||||
{
|
{
|
||||||
"DELETE FROM inotify;",
|
"DELETE FROM inotify;",
|
||||||
"DELETE FROM playlistitems;",
|
"DELETE FROM playlistitems;",
|
||||||
"DELETE FROM playlists WHERE type <> 1;",
|
"DELETE FROM playlists WHERE type <> 1;",
|
||||||
"DELETE FROM files;"
|
"DELETE FROM files;",
|
||||||
|
"DELETE FROM groups;",
|
||||||
};
|
};
|
||||||
char *errmsg;
|
char *errmsg;
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
Reference in New Issue
Block a user