Fix index declaration must be moved into the .key.sql files.
This commit is contained in:
parent
9cd5c8a564
commit
4c243d3b9e
@ -190,3 +190,9 @@ ALTER TABLE llx_extrafields ADD COLUMN fk_user_author integer;
|
|||||||
ALTER TABLE llx_extrafields ADD COLUMN fk_user_modif integer;
|
ALTER TABLE llx_extrafields ADD COLUMN fk_user_modif integer;
|
||||||
ALTER TABLE llx_extrafields ADD COLUMN datec datetime;
|
ALTER TABLE llx_extrafields ADD COLUMN datec datetime;
|
||||||
ALTER TABLE llx_extrafields ADD COLUMN tms timestamp;
|
ALTER TABLE llx_extrafields ADD COLUMN tms timestamp;
|
||||||
|
|
||||||
|
ALTER TABLE llx_holiday_config MODIFY COLUMN name varchar(128);
|
||||||
|
ALTER TABLE llx_holiday_config ADD UNIQUE INDEX idx_holiday_config (name);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
20
htdocs/install/mysql/tables/llx_holiday_config.key.sql
Normal file
20
htdocs/install/mysql/tables/llx_holiday_config.key.sql
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
-- ===================================================================
|
||||||
|
-- Copyright (C) 2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
--
|
||||||
|
-- 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
|
||||||
|
-- the Free Software Foundation; either version 3 of the License, or
|
||||||
|
-- (at your option) any later version.
|
||||||
|
--
|
||||||
|
-- This program is distributed in the hope that it will be useful,
|
||||||
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
-- GNU General Public License for more details.
|
||||||
|
--
|
||||||
|
-- You should have received a copy of the GNU General Public License
|
||||||
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
--
|
||||||
|
-- ===================================================================
|
||||||
|
|
||||||
|
ALTER TABLE llx_holiday_config ADD UNIQUE INDEX idx_holiday_config (name);
|
||||||
|
|
||||||
@ -19,7 +19,7 @@
|
|||||||
CREATE TABLE llx_holiday_config
|
CREATE TABLE llx_holiday_config
|
||||||
(
|
(
|
||||||
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
name VARCHAR( 255 ) NOT NULL UNIQUE,
|
name VARCHAR(128) NOT NULL,
|
||||||
value TEXT NULL
|
value TEXT NULL
|
||||||
)
|
)
|
||||||
ENGINE=innodb;
|
ENGINE=innodb;
|
||||||
Loading…
Reference in New Issue
Block a user