diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index 40f78be1e50..f0c05df8d9b 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -896,4 +896,6 @@ INSERT INTO llx_c_barcode (rowid, code, libelle, coder, example) VALUES (2, 'EAN INSERT INTO llx_c_barcode (rowid, code, libelle, coder, example) VALUES (3, 'UPC', 'UPC', 0, '123456789012'); INSERT INTO llx_c_barcode (rowid, code, libelle, coder, example) VALUES (4, 'ISBN', 'ISBN', 0, '123456789'); INSERT INTO llx_c_barcode (rowid, code, libelle, coder, example) VALUES (5, 'C39', 'Code 39', 0, '1234567890'); -INSERT INTO llx_c_barcode (rowid, code, libelle, coder, example) VALUES (6, 'C128', 'Code 128', 0, 'ABCD1234567890'); \ No newline at end of file +INSERT INTO llx_c_barcode (rowid, code, libelle, coder, example) VALUES (6, 'C128', 'Code 128', 0, 'ABCD1234567890'); + +ALTER TABLE llx_product ADD COLUMN gencode_type integer DEFAULT 0 after gencode; \ No newline at end of file diff --git a/mysql/tables/llx_product.sql b/mysql/tables/llx_product.sql index d8255e7c8fd..b5ef17c3222 100644 --- a/mysql/tables/llx_product.sql +++ b/mysql/tables/llx_product.sql @@ -43,6 +43,7 @@ create table llx_product seuil_stock_alerte integer DEFAULT 0, stock_loc varchar(10), -- emplacement dans le stock gencode varchar(255) DEFAULT NULL, + gencode_type integer DEFAULT 0, partnumber varchar(32), weight float DEFAULT NULL, weight_units tinyint DEFAULT NULL,