Show the number of items per shopping list in the shopping lists dropdown (closes #2467)

This commit is contained in:
Bernd Bestel
2024-02-12 20:36:33 +01:00
parent c7abed0d68
commit 40d1a9c3d0
4 changed files with 9 additions and 3 deletions

6
migrations/0235.sql Normal file
View File

@@ -0,0 +1,6 @@
CREATE VIEW shopping_lists_view
AS
SELECT
*,
(SELECT IFNULL(COUNT(*), 0) FROM shopping_list WHERE shopping_list_id = sl.id) AS item_count
FROM shopping_lists sl;