From 1ead555e09a6c4c9c87de1cb50881deb59858edf Mon Sep 17 00:00:00 2001 From: Claudio Barril Date: Sat, 1 Feb 2014 04:19:39 -0300 Subject: [PATCH] fixing tag cascade delete when mindmap tagged is deleted --- config/database/mysql/create-schemas.sql | 2 -- .../src/main/resources/com/wisemapping/model/Mindmap.hbm.xml | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/config/database/mysql/create-schemas.sql b/config/database/mysql/create-schemas.sql index 56b27217..a7a9f185 100644 --- a/config/database/mysql/create-schemas.sql +++ b/config/database/mysql/create-schemas.sql @@ -72,8 +72,6 @@ CREATE TABLE R_LABEL_MINDMAP ( PRIMARY KEY (mindmap_id, label_id), FOREIGN KEY (mindmap_id) REFERENCES MINDMAP (id), FOREIGN KEY (label_id) REFERENCES LABEL (id) - ON DELETE CASCADE - ON UPDATE NO ACTION ) CHARACTER SET utf8; diff --git a/wise-webapp/src/main/resources/com/wisemapping/model/Mindmap.hbm.xml b/wise-webapp/src/main/resources/com/wisemapping/model/Mindmap.hbm.xml index e0f69a27..a40c3fb3 100644 --- a/wise-webapp/src/main/resources/com/wisemapping/model/Mindmap.hbm.xml +++ b/wise-webapp/src/main/resources/com/wisemapping/model/Mindmap.hbm.xml @@ -27,8 +27,7 @@ + table="R_LABEL_MINDMAP">