From e445678ba07a1c336c5db375692412336fdb7f37 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Jan 2005 00:11:15 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Ajout=20d'une=20contrainte=20"UNIQUE"=20?= =?UTF-8?q?sur=20le=20nom=20de=20la=20soci=E9t=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/1.1.0-1.2.0-RC1.sql | 1 + mysql/tables/llx_societe.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mysql/migration/1.1.0-1.2.0-RC1.sql b/mysql/migration/1.1.0-1.2.0-RC1.sql index bc824c812af..397bcbf103c 100644 --- a/mysql/migration/1.1.0-1.2.0-RC1.sql +++ b/mysql/migration/1.1.0-1.2.0-RC1.sql @@ -7,6 +7,7 @@ DELETE from llx_const where name like '%_OUTPUT_URL'; +alter table llx_societe modify nom varchar(60) UNIQUE; alter table llx_boxes add box_order smallint default 0 NOT NULL; alter table llx_user drop column module_comm; diff --git a/mysql/tables/llx_societe.sql b/mysql/tables/llx_societe.sql index 3ea088aa6fe..14f51fe719d 100644 --- a/mysql/tables/llx_societe.sql +++ b/mysql/tables/llx_societe.sql @@ -29,7 +29,7 @@ create table llx_societe tms timestamp, datec datetime, -- creation date datea datetime, -- activation date - nom varchar(60), -- company name + nom varchar(60) UNIQUE, -- company name code_client varchar(15), -- code client code_compta varchar(15), -- code compta address varchar(255), -- company adresse