[db] Upgrade schema to 21.06, change default of query_limit to 0

This commit is contained in:
ejurgensen
2021-01-31 10:27:23 +01:00
parent 79b4a070b0
commit bd91a238ec
6 changed files with 64 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ scan_smartpl(const char *file, time_t mtime, int dir_id)
swap_pointers(&pli->title, &smartpl.title);
swap_pointers(&pli->query, &smartpl.query_where);
swap_pointers(&pli->query_order, &smartpl.order);
pli->query_limit = smartpl.limit;
pli->query_limit = (smartpl.limit > 0) ? smartpl.limit : 0;
free_smartpl(&smartpl, 1);