Include groups table in database purge

This commit is contained in:
ejurgensen 2013-12-16 22:21:04 +01:00
parent e79e11108e
commit a925268d50

View File

@ -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;