diff --git a/htdocs/install/mysql/migration/2.9.0-3.0.0.sql b/htdocs/install/mysql/migration/2.9.0-3.0.0.sql index 54017e54bab..38ef4117254 100644 --- a/htdocs/install/mysql/migration/2.9.0-3.0.0.sql +++ b/htdocs/install/mysql/migration/2.9.0-3.0.0.sql @@ -69,3 +69,7 @@ DELETE FROM llx_c_tva WHERE rowid = 46; ALTER TABLE llx_adherent ADD COLUMN import_key varchar(14); ALTER TABLE llx_categorie ADD COLUMN import_key varchar(14); + + +ALTER TABLE llx_product ADD COLUMN customcode varchar(32) after note; +ALTER TABLE llx_product ADD COLUMN fk_country integer after customcode; diff --git a/htdocs/install/mysql/tables/llx_product.sql b/htdocs/install/mysql/tables/llx_product.sql index b118e87886b..0e7c673ec69 100644 --- a/htdocs/install/mysql/tables/llx_product.sql +++ b/htdocs/install/mysql/tables/llx_product.sql @@ -33,6 +33,8 @@ create table llx_product label varchar(255) NOT NULL, description text, note text, + customcode varchar(32), -- Optionnal custom code + fk_country integer, -- Optionnal id of original country price double(24,8) DEFAULT 0, price_ttc double(24,8) DEFAULT 0, price_min double(24,8) DEFAULT 0,