Found more datetimes to update
This commit is contained in:
parent
809de13ed8
commit
3d2d681a7d
2 changed files with 5 additions and 5 deletions
|
|
@ -37,8 +37,8 @@ async def create(conn):
|
|||
id INTEGER PRIMARY KEY,
|
||||
suggested_date DATETIME,
|
||||
consumed_date DATETIME DEFAULT NULL,
|
||||
deleted_date TEXT DEFAULT NULL,
|
||||
purchase_date TEXT DEFAULT NULL
|
||||
deleted_date DATETIME DEFAULT NULL,
|
||||
purchase_date DATETIME DEFAULT NULL
|
||||
);''')
|
||||
|
||||
await conn.execute('''
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ async def create(conn):
|
|||
await conn.execute('''
|
||||
CREATE TABLE IF NOT EXISTS ShoppingList (
|
||||
id INTEGER PRIMARY KEY,
|
||||
created_date DATETIME,
|
||||
store_name TEXT
|
||||
created_date DATETIME NOT NULL,
|
||||
store_name TEXT NOT NULL,
|
||||
);''')
|
||||
|
||||
await conn.execute('''
|
||||
|
|
@ -65,7 +65,7 @@ async def create(conn):
|
|||
list_id INTEGER,
|
||||
person_id INTEGER,
|
||||
meal_id INTEGER,
|
||||
created_date TEXT,
|
||||
created_date DATETIME NOT NULL,
|
||||
FOREIGN KEY(ingredient_id) REFERENCES Ingredient(id),
|
||||
FOREIGN KEY(person_id) REFERENCES Person(id),
|
||||
FOREIGN KEY(meal_id) REFERENCES Meal(id),
|
||||
|
|
|
|||
Loading…
Reference in a new issue