diff --git a/mysql/migration/1.1.0-2.0.0.sql b/mysql/migration/1.1.0-2.0.0.sql index ae1c5fa93b3..e472b21f70c 100644 --- a/mysql/migration/1.1.0-2.0.0.sql +++ b/mysql/migration/1.1.0-2.0.0.sql @@ -1054,6 +1054,10 @@ insert into llx_c_actioncomm (id, code, type, libelle) values (10, 'AC_REL', 's insert into llx_c_actioncomm (id, code, type, libelle) values (11, 'AC_CLO', 'system', 'Clôture'); alter table llx_actioncomm change percent percent smallint NOT NULL default 0; +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_datea (datea); +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_soc (fk_soc); +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_contact (fk_contact); +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_facture (fk_facture); drop table if exists llx_c_ape; diff --git a/mysql/tables/llx_actioncomm.key.sql b/mysql/tables/llx_actioncomm.key.sql new file mode 100644 index 00000000000..a305d0201e1 --- /dev/null +++ b/mysql/tables/llx_actioncomm.key.sql @@ -0,0 +1,27 @@ +-- ============================================================================ +-- Copyright (C) 2005 Laurent Destailleur +-- +-- 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 2 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, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +-- +-- $Id$ +-- $Source$ +-- +-- =========================================================================== + + +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_datea (datea); +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_soc (fk_soc); +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_contact (fk_contact); +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_facture (fk_facture);