From 97eebce20581929dd522e9e495c3db80ce3aff8b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 2 Aug 2007 22:29:29 +0000 Subject: [PATCH] Declaration migration non en phase avec creation. --- mysql/migration/2.1.0-2.2.0.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index 926bcb79a40..fa84f127dfb 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -59,9 +59,8 @@ create table `llx_categorie_societe` ( -- alter table `llx_categorie_societe` drop foreign key fk_societe; -alter table `llx_categorie_societe` - add constraint `llx_categorie_societe_ibfk_1` foreign key(`fk_societe`) REFERENCES `llx_societe` (`rowid`) ON DELETE CASCADE ON UPDATE CASCADE, - add constraint `llx_categorie_societe_ibfk_2` foreign key(`fk_categorie`) REFERENCES `llx_categorie` (`rowid`) ON DELETE CASCADE ON UPDATE CASCADE; +alter table `llx_categorie_societe` add constraint `fk_categorie_societe_categorie_rowid` foreign key(`fk_categorie`) REFERENCES `llx_categorie` (`rowid`); +alter table `llx_categorie_societe` add constraint `fk_categorie_societe_fk_soc` foreign key(`fk_societe`) REFERENCES `llx_societe` (`rowid`); create table `llx_categorie_product` ( `fk_categorie` int(11) not null,