Fix: use MODIFY instead CHANGE for just change the type of field
This commit is contained in:
parent
e9c72f812d
commit
26ff406e4a
@ -207,4 +207,4 @@ alter table llx_propaldet add column localtax1_type char(1) after localtax1_tx;
|
|||||||
alter table llx_propaldet add column localtax2_type char(1) after localtax2_tx;
|
alter table llx_propaldet add column localtax2_type char(1) after localtax2_tx;
|
||||||
-- END TASK #204
|
-- END TASK #204
|
||||||
|
|
||||||
ALTER TABLE llx_menu CHANGE enabled enabled TINYINT(1) UNSIGNED NULL DEFAULT '1';
|
ALTER TABLE llx_menu MODIFY COLUMN enabled TINYINT(1) UNSIGNED NULL DEFAULT '1';
|
||||||
@ -1,8 +1,8 @@
|
|||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
-- Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
||||||
-- Copyright (C) 2007-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2007-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
-- Copyright (C) 2009 Regis Houssin <regis@dolibarr.fr>
|
-- Copyright (C) 2009-2012 Regis Houssin <regis@dolibarr.fr>
|
||||||
-- Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
|
-- Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- it under the terms of the GNU General Public License as published by
|
-- it under the terms of the GNU General Public License as published by
|
||||||
@ -23,31 +23,24 @@
|
|||||||
CREATE TABLE llx_menu
|
CREATE TABLE llx_menu
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
|
rowid integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
|
||||||
menu_handler varchar(16) NOT NULL, -- Menu handler name
|
menu_handler varchar(16) NOT NULL, -- Menu handler name
|
||||||
entity integer DEFAULT 1 NOT NULL, -- Multi company id
|
entity integer DEFAULT 1 NOT NULL, -- Multi company id
|
||||||
module varchar(64), -- Module name if record is added by a module
|
module varchar(64), -- Module name if record is added by a module
|
||||||
type varchar(4) NOT NULL, -- Menu top or left
|
type varchar(4) NOT NULL, -- Menu top or left
|
||||||
mainmenu varchar(100) NOT NULL, -- Name family/module for top menu (home, companies, ...)
|
mainmenu varchar(100) NOT NULL, -- Name family/module for top menu (home, companies, ...)
|
||||||
leftmenu varchar(100) NULL, -- Name family/module for left menu (setup, info, ...)
|
leftmenu varchar(100) NULL, -- Name family/module for left menu (setup, info, ...)
|
||||||
fk_menu integer NOT NULL, -- 0 or Id of mother menu line, or -1 if we use fk_mainmenu and fk_leftmenu
|
fk_menu integer NOT NULL, -- 0 or Id of mother menu line, or -1 if we use fk_mainmenu and fk_leftmenu
|
||||||
fk_mainmenu varchar(24), --
|
fk_mainmenu varchar(24), --
|
||||||
fk_leftmenu varchar(24), --
|
fk_leftmenu varchar(24), --
|
||||||
position integer NOT NULL, -- Sort order of entry
|
position integer NOT NULL, -- Sort order of entry
|
||||||
url varchar(255) NOT NULL, -- Relative (or absolute) url to go
|
url varchar(255) NOT NULL, -- Relative (or absolute) url to go
|
||||||
target varchar(100) NULL, -- Target of Url link
|
target varchar(100) NULL, -- Target of Url link
|
||||||
titre varchar(255) NOT NULL, -- Key for menu translation
|
titre varchar(255) NOT NULL, -- Key for menu translation
|
||||||
langs varchar(100), -- Lang file to load for translation
|
langs varchar(100), -- Lang file to load for translation
|
||||||
level smallint, -- Deprecated. Not used.
|
level smallint, -- Deprecated. Not used.
|
||||||
perms varchar(255), -- Condition to show enabled or disabled
|
perms varchar(255), -- Condition to show enabled or disabled
|
||||||
enabled tinyint(1) UNSIGNED NULL default '1', -- Condition to show or hide
|
enabled tinyint(1) UNSIGNED NULL DEFAULT 1, -- Condition to show or hide
|
||||||
usertype integer NOT NULL default '0', -- 0 if menu for all users, 1 for external only, 2 for internal only
|
usertype integer NOT NULL DEFAULT 0, -- 0 if menu for all users, 1 for external only, 2 for internal only
|
||||||
tms timestamp
|
tms timestamp
|
||||||
) ENGINE=innodb;
|
|
||||||
|
|
||||||
--
|
) ENGINE=innodb;
|
||||||
-- List of codes for the field entity
|
|
||||||
--
|
|
||||||
-- 1 : first company product
|
|
||||||
-- 2 : second company product
|
|
||||||
-- 3 : etc...
|
|
||||||
--
|
|
||||||
Loading…
Reference in New Issue
Block a user