mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
addding on delete cascade to R table
This commit is contained in:
parent
0891beeecd
commit
f248a8c099
@ -72,6 +72,8 @@ 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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user