Browse Source

Prepare database for future portal website

Laurent Destailleur 9 years ago
parent
commit
dcf7d344cd

+ 2 - 0
htdocs/install/mysql/migration/3.8.0-3.9.0.sql

@@ -92,3 +92,5 @@ CREATE TABLE llx_ecm_files
 
 ALTER TABLE llx_ecm_files ADD UNIQUE INDEX uk_ecm_files_fullpath(fullpath);
 
+
+ALTER TABLE llx_product ADD COLUMN onportal tinyint DEFAULT 0 after tobuy;

+ 1 - 0
htdocs/install/mysql/tables/llx_product.sql

@@ -52,6 +52,7 @@ create table llx_product
   fk_user_modif             integer,                         -- user making last change
   tosell					tinyint      DEFAULT 1,	          -- Product you sell
   tobuy						tinyint      DEFAULT 1,            -- Product you buy
+  onportal     				tinyint      DEFAULT 0,	          -- If it is a product you sell and you want to sell it on portal (module website must be on)
   tobatch					tinyint      DEFAULT 0 NOT NULL,  -- Is it a product that need a batch or eat-by management
   fk_product_type			integer      DEFAULT 0,			-- Type of product: 0 for regular product, 1 for service, 9 for other (used by external module)
   duration					varchar(6),