mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
Include groups table in database purge
This commit is contained in:
parent
e79e11108e
commit
a925268d50
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user