Add index on new table llx_c_email_template

This commit is contained in:
Laurent Destailleur 2014-10-12 16:31:56 +02:00
parent 8df8fb2fe0
commit 3bac7c9e11
2 changed files with 26 additions and 0 deletions

View File

@ -18,6 +18,7 @@
-- -- VPGSQL8.2 DELETE FROM llx_usergroup_user WHERE fk_user NOT IN (SELECT rowid from llx_user);
-- -- VMYSQL4.1 DELETE FROM llx_usergroup_user WHERE fk_usergroup NOT IN (SELECT rowid from llx_usergroup);
ALTER TABLE llx_bank_account ADD COLUMN fk_user_author integer;
ALTER TABLE llx_c_actioncomm ADD COLUMN color varchar(9);
@ -1086,3 +1087,6 @@ CREATE TABLE llx_usergroup_extrafields (
ALTER TABLE llx_usergroup_extrafields ADD INDEX idx_usergroup_extrafields (fk_object);
ALTER TABLE llx_contrat ADD COLUMN model_pdf varchar(255) DEFAULT NULL AFTER note_public;
ALTER TABLE llx_c_email_template ADD UNIQUE INDEX uk_c_email_template(label, lang);
ALTER TABLE llx_c_email_template ADD INDEX idx_type(type_template);

View File

@ -0,0 +1,22 @@
-- ===================================================================
-- Copyright (C) 2014 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/>.
--
-- Table with templates of emails
-- ===================================================================
ALTER TABLE llx_c_email_template ADD UNIQUE INDEX uk_c_email_template(label, lang);
ALTER TABLE llx_c_email_template ADD INDEX idx_type(type_template);