mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Show the number of items per shopping list in the shopping lists dropdown (closes #2467)
This commit is contained in:
6
migrations/0235.sql
Normal file
6
migrations/0235.sql
Normal 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;
|
Reference in New Issue
Block a user