Fix: Index must have a name

This commit is contained in:
Laurent Destailleur 2009-05-08 03:42:43 +00:00
parent dbf20fde28
commit 2e79d5419d
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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);