From 2e79d5419dfa6b2cdea456b02923764c517eada6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 May 2009 03:42:43 +0000 Subject: [PATCH] Fix: Index must have a name --- mysql/migration/2.6.0-2.7.0.sql | 4 +++- mysql/tables/llx_dolibarr_modules.key.sql | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mysql/migration/2.6.0-2.7.0.sql b/mysql/migration/2.6.0-2.7.0.sql index 610816fdd0a..fdab9b637e2 100644 --- a/mysql/migration/2.6.0-2.7.0.sql +++ b/mysql/migration/2.6.0-2.7.0.sql @@ -126,4 +126,6 @@ UPDATE llx_const SET entity=0 WHERE name='SYSLOG_FILE'; UPDATE llx_const SET entity=0 WHERE name='SYSLOG_LEVEL'; - +-- Fix to solve forgoten names on keys +ALTER TABLE llx_dolibarr_modules drop primary KEY; +ALTER TABLE llx_dolibarr_modules ADD PRIMARY KEY pk_dolibarr_modules (numero, entity); diff --git a/mysql/tables/llx_dolibarr_modules.key.sql b/mysql/tables/llx_dolibarr_modules.key.sql index 2aa0c8a9f41..1157928e31d 100644 --- a/mysql/tables/llx_dolibarr_modules.key.sql +++ b/mysql/tables/llx_dolibarr_modules.key.sql @@ -19,4 +19,4 @@ -- =========================================================================== -ALTER TABLE llx_dolibarr_modules ADD PRIMARY KEY (numero, entity); +ALTER TABLE llx_dolibarr_modules ADD PRIMARY KEY uk_dolibarr_modules (numero, entity);