From e3504464e52b43a78e602f9c5dce024a93f0f3b3 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 22 Dec 2020 11:32:26 +0100 Subject: [PATCH] Don't enforce barcodes to be unique (fixes #1205) --- migrations/0103.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/0103.sql b/migrations/0103.sql index e93c6e98..baa8c257 100644 --- a/migrations/0103.sql +++ b/migrations/0103.sql @@ -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,