Fix: use MODIFY instead CHANGE for just change the type of field

This commit is contained in:
Regis Houssin 2012-09-10 13:25:34 +02:00
parent e9c72f812d
commit 26ff406e4a
2 changed files with 25 additions and 32 deletions

View File

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

View File

@ -1,7 +1,7 @@
-- ======================================================================== -- ========================================================================
-- 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
@ -39,15 +39,8 @@ CREATE TABLE llx_menu
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...
--