Add shopping entry notes
This commit is contained in:
+2
-1
@@ -167,6 +167,7 @@ CREATE TABLE IF NOT EXISTS shopping_entries (
|
||||
owner_user_id INTEGER,
|
||||
visibility TEXT NOT NULL DEFAULT 'shared',
|
||||
item_id INTEGER NOT NULL,
|
||||
shopping_note TEXT NOT NULL DEFAULT '',
|
||||
added_by INTEGER,
|
||||
checked_by INTEGER,
|
||||
needed_for_date TEXT,
|
||||
@@ -183,7 +184,7 @@ CREATE TABLE IF NOT EXISTS shopping_entries (
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_shopping_entries_open_item
|
||||
ON shopping_entries (item_id)
|
||||
ON shopping_entries (item_id, COALESCE(shopping_note, ''))
|
||||
WHERE is_checked = 0;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS shopping_needs (
|
||||
|
||||
Reference in New Issue
Block a user