mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
Don't enforce barcodes to be unique (fixes #1205)
This commit is contained in:
parent
94e4ee0659
commit
e3504464e5
@ -12,7 +12,7 @@ SET price = ROUND(price / (SELECT qu_factor_purchase_to_stock FROM products WHER
|
|||||||
CREATE TABLE product_barcodes (
|
CREATE TABLE product_barcodes (
|
||||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||||
product_id INT NOT NULL,
|
product_id INT NOT NULL,
|
||||||
barcode TEXT NOT NULL UNIQUE,
|
barcode TEXT NOT NULL,
|
||||||
qu_id INT,
|
qu_id INT,
|
||||||
amount REAL,
|
amount REAL,
|
||||||
shopping_location_id INTEGER,
|
shopping_location_id INTEGER,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user