mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 01:37:13 +00:00
Implemented multiple/named shopping lists (closes #190)
This commit is contained in:
14
migrations/0062.sql
Normal file
14
migrations/0062.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
ALTER TABLE shopping_list
|
||||
ADD shopping_list_id INT DEFAULT 1;
|
||||
|
||||
CREATE TABLE shopping_lists (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
name TEXT NOT NULL UNIQUE,
|
||||
description TEXT,
|
||||
row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime'))
|
||||
);
|
||||
|
||||
INSERT INTO shopping_lists
|
||||
(name)
|
||||
VALUES
|
||||
('Default');
|
Reference in New Issue
Block a user