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 5af8870dc2e845c995aca7d01ef186716f09645f..63bf6a752a1b81d2924ed29a1fe89728c6f476ed 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 @@ -11,5 +11,5 @@ alter table llx_product add column recuperableonly integer NOT NULL DEFAUL alter table llx_product_price add column recuperableonly integer NOT NULL DEFAULT '0' after tva_tx; - +alter table llx_product add column tobuy tinyint DEFAULT 1 after envente; \ No newline at end of file diff --git a/htdocs/install/mysql/tables/llx_product.sql b/htdocs/install/mysql/tables/llx_product.sql index bb3008ddff1db5b6a5cf7c939bb2aa9c00781b10..9562dc9f968e3a9536dc2e0f9e44203e6dd481a4 100644 --- a/htdocs/install/mysql/tables/llx_product.sql +++ b/htdocs/install/mysql/tables/llx_product.sql @@ -44,6 +44,7 @@ create table llx_product localtax2_tx double(6,3) DEFAULT 0, -- Spanish local VAT 2 fk_user_author integer, envente tinyint DEFAULT 1, + tobuy tinyint DEFAULT 1, fk_product_type integer DEFAULT 0, -- Type 0 for regular product, 1 for service duration varchar(6), seuil_stock_alerte integer DEFAULT 0,