mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 01:37:13 +00:00
Implemented meal plan sections (closes #370)
This commit is contained in:
14
migrations/0149.sql
Normal file
14
migrations/0149.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE meal_plan_sections (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
name TEXT NOT NULL UNIQUE,
|
||||
sort_number INTEGER,
|
||||
row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime'))
|
||||
);
|
||||
|
||||
INSERT INTO meal_plan_sections
|
||||
(id, name, sort_number)
|
||||
VALUES
|
||||
(-1, '', -1);
|
||||
|
||||
ALTER TABLE meal_plan
|
||||
ADD section_id INTEGER NOT NULL DEFAULT -1;
|
Reference in New Issue
Block a user