diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index a195551f16b..b583469613a 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -615,3 +615,5 @@ create table llx_product_subproduct fk_product_subproduct integer NOT NULL, -- id du sous-produit UNIQUE(fk_product, fk_product_subproduct) )type=innodb; + +alter table llx_product_price add column price_base_type varchar(3) DEFAULT 'HT' after price; \ No newline at end of file diff --git a/mysql/tables/llx_product_price.sql b/mysql/tables/llx_product_price.sql index 928f440f1a8..03e2737fb40 100644 --- a/mysql/tables/llx_product_price.sql +++ b/mysql/tables/llx_product_price.sql @@ -26,8 +26,9 @@ create table llx_product_price tms timestamp, fk_product integer NOT NULL, date_price datetime NOT NULL, - price_level tinyint(4) NULL DEFAULT 1, + price_level tinyint(4) NULL DEFAULT 1, price double, + price_base_type varchar(3) DEFAULT 'HT', tva_tx double NOT NULL, fk_user_author integer, envente tinyint DEFAULT 1