From 2fc63cc9e0da7be5f120098b5ec3118846eaa885 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 14 Nov 2007 20:37:43 +0000 Subject: [PATCH] Fix: la requete ne passe pas en mysql 4.0 --- mysql/migration/2.1.0-2.2.0.sql | 2 +- 1 file changed, 1 insertion(+), 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 97130e064bb..44d05e07dee 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -11,7 +11,7 @@ -- On migre les categorie fournisseur de la table llx_fournisseur_categorie qui est obsolete vers table llx_categories qui est generique pour gerer les categories de tout type -- V4 INSERT into llx_categorie (label, description, visible, type) (select distinct label, label, 1, 1 from llx_fournisseur_categorie); --- V4 UPDATE llx_categorie_fournisseur as cf SET cf.fk_categorie = IFNULL((SELECT distinct c.rowid from llx_categorie as c, llx_fournisseur_categorie as fc where fc.rowid = cf.fk_categorie AND c.type = 1 AND c.label = fc.label),cf.fk_categorie); +-- V4.1 UPDATE llx_categorie_fournisseur as cf SET cf.fk_categorie = IFNULL((SELECT distinct c.rowid from llx_categorie as c, llx_fournisseur_categorie as fc where fc.rowid = cf.fk_categorie AND c.type = 1 AND c.label = fc.label),cf.fk_categorie); -- Corrige mauvaise insertion du a champ trop court