Skip to content
Snippets Groups Projects
Commit da36d530 authored by Monika Komorowska's avatar Monika Komorowska
Browse files

Added 'intersection_of' flag to 'term' table.

parent 93f224ca
No related branches found
No related tags found
No related merge requests found
......@@ -69,10 +69,11 @@ CREATE TABLE relation (
child_term_id INT UNSIGNED NOT NULL,
parent_term_id INT UNSIGNED NOT NULL,
relation_type_id INT UNSIGNED NOT NULL,
intersection_of TINYINT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (relation_id),
UNIQUE INDEX child_parent_idx
(child_term_id, parent_term_id, relation_type_id),
(child_term_id, parent_term_id, relation_type_id, intersection_of),
INDEX parent_idx (parent_term_id)
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment