New: Ajout index sur code client et code compta

This commit is contained in:
Laurent Destailleur 2005-06-25 18:42:47 +00:00
parent 5c089db0d7
commit 27ecf64bd1
2 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,26 @@
-- ===================================================================
-- Copyright (C) 2005 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 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_societe ADD UNIQUE uk_prefix_comm(prefix_comm);
ALTER TABLE llx_societe ADD UNIQUE uk_code_client(code_client);
ALTER TABLE llx_societe ADD UNIQUE uk_code_compta(code_compta);

View File

@ -59,8 +59,6 @@ create table llx_societe
rubrique varchar(255), -- champ rubrique libre
fk_user_creat integer, -- utilisateur qui a créé l'info
fk_user_modif integer, -- utilisateur qui a modifié l'info
remise_client real DEFAULT 0, -- remise systématique pour le client
UNIQUE INDEX(prefix_comm)
remise_client real DEFAULT 0 -- remise systématique pour le client
)type=innodb;