From ebfb5e2c5bdd11f16cd821a814447d130f14dfc5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 5 Jun 2007 20:05:56 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Nom=20index=20mieux=20norm=E9=20pour=20e?= =?UTF-8?q?viter=20conflit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/2.1.0-2.2.0.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index 769ecd70300..dd79460fc4b 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -543,7 +543,8 @@ ALTER TABLE llx_product modify ref varchar(32) NOT NULL; ALTER TABLE `llx_socpeople` CHANGE `fk_user` `fk_user_creat` INT(11) NULL; ALTER TABLE `llx_socpeople` CHANGE `fk_user_create` `fk_user_creat` INT(11) NULL; -- V4 UPDATE llx_socpeople set fk_user_creat = null where llx_socpeople.fk_user_creat is not null and llx_socpeople.fk_user_creat not in (select rowid from llx_user); --- V4 ALTER TABLE llx_socpeople ADD INDEX idx_fk_user_creat (fk_user_creat); +-- V4 DROP INDEX idx_fk_user_creat; +-- V4 ALTER TABLE llx_socpeople ADD INDEX idx_socpeople_fk_user_creat (fk_user_creat); -- V4 ALTER TABLE llx_socpeople ADD CONSTRAINT fk_socpeople_user_creat_user_rowid FOREIGN KEY (fk_user_creat) REFERENCES llx_user (rowid); ALTER TABLE llx_user add pass_temp VARCHAR(32) NULL after pass_crypted;