mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Add shopping location for price tracking (#658)
This commit is contained in:
12
migrations/0099.sql
Normal file
12
migrations/0099.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE shopping_locations (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
name TEXT NOT NULL UNIQUE,
|
||||
description TEXT
|
||||
row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime'))
|
||||
);
|
||||
|
||||
ALTER TABLE stock_log
|
||||
ADD shopping_location_id INTEGER;
|
||||
|
||||
ALTER TABLE stock
|
||||
ADD shopping_location_id INTEGER;
|
Reference in New Issue
Block a user