From 902e7897c22313e26097d98b3e2c4f42312c1f9a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Jan 2009 19:10:40 +0000 Subject: [PATCH] Add indexes on bank table --- mysql/migration/2.5.0-2.6.0.sql | 5 +++++ mysql/tables/llx_bank.key.sql | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 mysql/tables/llx_bank.key.sql diff --git a/mysql/migration/2.5.0-2.6.0.sql b/mysql/migration/2.5.0-2.6.0.sql index 0df8d3ff5ca..5e5354bb639 100644 --- a/mysql/migration/2.5.0-2.6.0.sql +++ b/mysql/migration/2.5.0-2.6.0.sql @@ -16,3 +16,8 @@ insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) v alter table llx_product_stock add column pmp double(24,8) default 0 NOT NULL; +ALTER TABLE llx_bank ADD INDEX idx_bank_datev(datev); +ALTER TABLE llx_bank ADD INDEX idx_bank_dateo(dateo); +ALTER TABLE llx_bank ADD INDEX idx_bank_fk_account(fk_account); +ALTER TABLE llx_bank ADD INDEX idx_bank_rappro(rappro); + diff --git a/mysql/tables/llx_bank.key.sql b/mysql/tables/llx_bank.key.sql new file mode 100644 index 00000000000..aba765190ee --- /dev/null +++ b/mysql/tables/llx_bank.key.sql @@ -0,0 +1,26 @@ +-- =================================================================== +-- Copyright (C) 2009 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$ +-- =================================================================== + +ALTER TABLE llx_bank ADD INDEX idx_bank_datev(datev); +ALTER TABLE llx_bank ADD INDEX idx_bank_dateo(dateo); +ALTER TABLE llx_bank ADD INDEX idx_bank_fk_account(fk_account); +ALTER TABLE llx_bank ADD INDEX idx_bank_rappro(rappro); + +