From a5d90e40f8ab4fa74e255d5a1900aab162ebed8a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 29 Sep 2007 10:08:08 +0000 Subject: [PATCH] Ajout du type de code barre dans la table llx_product afin de pouvoir le changer si besoin --- mysql/migration/2.1.0-2.2.0.sql | 4 +++- mysql/tables/llx_product.sql | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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,