diff --git a/mysql/tables/llx_societe.key.sql b/mysql/tables/llx_societe.key.sql new file mode 100644 index 00000000000..9ae02d5c513 --- /dev/null +++ b/mysql/tables/llx_societe.key.sql @@ -0,0 +1,26 @@ +-- =================================================================== +-- 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_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); diff --git a/mysql/tables/llx_societe.sql b/mysql/tables/llx_societe.sql index 3ea088aa6fe..da61359d7de 100644 --- a/mysql/tables/llx_societe.sql +++ b/mysql/tables/llx_societe.sql @@ -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;