From 2aa3995b73d808fd4a325000d312e2f95c4ec26b Mon Sep 17 00:00:00 2001
From: aspangaro <alexandre.spangaro@gmail.com>
Date: Thu, 21 Aug 2014 06:01:47 +0200
Subject: [PATCH] Fix :: Sql problem for fresh install on resource table // Ok
 in migration script

---
 htdocs/install/mysql/tables/llx_c_type_resource.key.sql | 2 +-
 htdocs/install/mysql/tables/llx_c_type_resource.sql     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/htdocs/install/mysql/tables/llx_c_type_resource.key.sql b/htdocs/install/mysql/tables/llx_c_type_resource.key.sql
index 5a76ff0cfa6..dc5c5ee150a 100644
--- a/htdocs/install/mysql/tables/llx_c_type_resource.key.sql
+++ b/htdocs/install/mysql/tables/llx_c_type_resource.key.sql
@@ -17,5 +17,5 @@
 -- ========================================================================
 
 
-ALTER TABLE llx_c_type_contact ADD UNIQUE INDEX uk_c_type_contact_id (element, source, code);
+ALTER TABLE llx_c_type_resource ADD UNIQUE INDEX uk_c_type_resource_id (label, code);
 
diff --git a/htdocs/install/mysql/tables/llx_c_type_resource.sql b/htdocs/install/mysql/tables/llx_c_type_resource.sql
index efb505ba574..8ba088c075e 100644
--- a/htdocs/install/mysql/tables/llx_c_type_resource.sql
+++ b/htdocs/install/mysql/tables/llx_c_type_resource.sql
@@ -29,6 +29,6 @@ create table llx_c_type_resource
 (
   rowid      	integer     PRIMARY KEY,
   code          varchar(32) NOT NULL,
-  libelle 	    varchar(64)	NOT NULL,
+  label 	    varchar(64)	NOT NULL,
   active  	    tinyint DEFAULT 1  NOT NULL
 )ENGINE=innodb;
-- 
GitLab