Add field enabled in menu table (To replace too complicated table llx_menu_constraint)

This commit is contained in:
Laurent Destailleur 2008-12-02 14:51:47 +00:00
parent c59b20d543
commit 8060ac9579
2 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,8 @@ alter table llx_projet_task_actors modify column role varchar(5) DEFAU
alter table llx_projet_task modify column statut varchar(6) DEFAULT 'open';
alter table llx_rights_def modify column type varchar(1);
ALTER TABLE llx_menu ADD COLUMN enabled varchar(255) NULL default '1' after perms;
ALTER TABLE `llx_commandedet` ADD column `date_start` DATETIME DEFAULT NULL, ADD `date_end` DATETIME DEFAULT NULL ;
alter table llx_categorie add column fk_soc integer DEFAULT NULL after description;

View File

@ -41,6 +41,7 @@ CREATE TABLE `llx_menu` (
leftmenu varchar(1) NULL default '1', -- Say if left menu defined in pre.inc.php and used by top menu must be overwritten by dynamic databse menu (1=yes by default)
perms varchar(255), -- Condition to show enabled or disabled
enabled varchar(255) NULL default '1', -- Condition to show or hide
user integer NOT NULL default '0', -- 0 if menu for all users, 1 for external only, 2 for internal only
tms timestamp