addding on delete cascade to R table

This commit is contained in:
Ezequiel Bergamaschi 2014-02-01 18:53:54 -03:00 committed by Ezequiel Bergamaschi
parent 0891beeecd
commit f248a8c099

View File

@ -72,6 +72,8 @@ 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;