diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index 20d647b4428..ef82d1d851b 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -872,4 +872,4 @@ ALTER TABLE llx_product_fournisseur_price_log CHANGE fk_product fk_product_fourn ALTER TABLE llx_commande_fournisseurdet MODIFY fk_commande integer NOT NULL; -ALTER TABLE llx_product_fournisseur ADD COLUMN partnumber varchar(30) after ref_fourn; \ No newline at end of file +ALTER TABLE llx_product ADD COLUMN partnumber varchar(30) after gencode; \ No newline at end of file diff --git a/mysql/tables/llx_product.sql b/mysql/tables/llx_product.sql index 003e7da1c08..d8255e7c8fd 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, + partnumber varchar(32), weight float DEFAULT NULL, weight_units tinyint DEFAULT NULL, volume float DEFAULT NULL, diff --git a/mysql/tables/llx_product_fournisseur.sql b/mysql/tables/llx_product_fournisseur.sql index 1f726cff6c2..9a0021f63e0 100644 --- a/mysql/tables/llx_product_fournisseur.sql +++ b/mysql/tables/llx_product_fournisseur.sql @@ -28,7 +28,6 @@ create table llx_product_fournisseur fk_product integer, fk_soc integer, ref_fourn varchar(30), - partnumber varchar(30), fk_user_author integer, key(fk_product),