New: Ajout index sur code client et code compta
This commit is contained in:
parent
5c089db0d7
commit
27ecf64bd1
26
mysql/tables/llx_societe.key.sql
Normal file
26
mysql/tables/llx_societe.key.sql
Normal 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);
|
||||||
@ -59,8 +59,6 @@ create table llx_societe
|
|||||||
rubrique varchar(255), -- champ rubrique libre
|
rubrique varchar(255), -- champ rubrique libre
|
||||||
fk_user_creat integer, -- utilisateur qui a créé l'info
|
fk_user_creat integer, -- utilisateur qui a créé l'info
|
||||||
fk_user_modif integer, -- utilisateur qui a modifié l'info
|
fk_user_modif integer, -- utilisateur qui a modifié l'info
|
||||||
remise_client real DEFAULT 0, -- remise systématique pour le client
|
remise_client real DEFAULT 0 -- remise systématique pour le client
|
||||||
|
|
||||||
UNIQUE INDEX(prefix_comm)
|
|
||||||
)type=innodb;
|
)type=innodb;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user