Prepare database for future portal website

This commit is contained in:
Laurent Destailleur
2015-10-19 12:54:22 +02:00
parent e43f1cee7b
commit dcf7d344cd
2 changed files with 3 additions and 0 deletions

View File

@@ -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;

View File

@@ -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),