mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
fixing tag cascade delete when mindmap tagged is deleted
This commit is contained in:
parent
cf246f00c8
commit
1ead555e09
@ -72,8 +72,6 @@ CREATE TABLE R_LABEL_MINDMAP (
|
|||||||
PRIMARY KEY (mindmap_id, label_id),
|
PRIMARY KEY (mindmap_id, label_id),
|
||||||
FOREIGN KEY (mindmap_id) REFERENCES MINDMAP (id),
|
FOREIGN KEY (mindmap_id) REFERENCES MINDMAP (id),
|
||||||
FOREIGN KEY (label_id) REFERENCES LABEL (id)
|
FOREIGN KEY (label_id) REFERENCES LABEL (id)
|
||||||
ON DELETE CASCADE
|
|
||||||
ON UPDATE NO ACTION
|
|
||||||
)
|
)
|
||||||
CHARACTER SET utf8;
|
CHARACTER SET utf8;
|
||||||
|
|
||||||
|
@ -27,8 +27,7 @@
|
|||||||
</set>
|
</set>
|
||||||
|
|
||||||
<set name = "labels"
|
<set name = "labels"
|
||||||
table="R_LABEL_MINDMAP"
|
table="R_LABEL_MINDMAP">
|
||||||
cascade="all">
|
|
||||||
<key column="mindmap_id" not-null="true"/>
|
<key column="mindmap_id" not-null="true"/>
|
||||||
<many-to-many column="label_id" class="com.wisemapping.model.Label"/>
|
<many-to-many column="label_id" class="com.wisemapping.model.Label"/>
|
||||||
</set>
|
</set>
|
||||||
|
Loading…
Reference in New Issue
Block a user