Don't enforce barcodes to be unique (fixes #1205)

This commit is contained in:
Bernd Bestel 2020-12-22 11:32:26 +01:00
parent 94e4ee0659
commit e3504464e5
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -12,7 +12,7 @@ SET price = ROUND(price / (SELECT qu_factor_purchase_to_stock FROM products WHER
CREATE TABLE product_barcodes (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
product_id INT NOT NULL,
barcode TEXT NOT NULL UNIQUE,
barcode TEXT NOT NULL,
qu_id INT,
amount REAL,
shopping_location_id INTEGER,