Skip to content
Snippets Groups Projects
Verified Commit 8e595ab3 authored by Martin Weise's avatar Martin Weise
Browse files

More FKs

parent e6269ff0
No related branches found
No related tags found
2 merge requests!387Wrong model,!384Wrong model
......@@ -251,6 +251,7 @@ CREATE TABLE IF NOT EXISTS `mdb_columns_concepts`
cID VARCHAR(36) NOT NULL,
created TIMESTAMP NOT NULL DEFAULT NOW(),
PRIMARY KEY (id, cid),
FOREIGN KEY (`id`) REFERENCES mdb_concepts (`id`),
FOREIGN KEY (`cID`) REFERENCES mdb_columns (`ID`)
) WITH SYSTEM VERSIONING;
......@@ -260,6 +261,7 @@ CREATE TABLE IF NOT EXISTS `mdb_columns_units`
cID VARCHAR(36) NOT NULL,
created TIMESTAMP NOT NULL DEFAULT NOW(),
PRIMARY KEY (id, cID),
FOREIGN KEY (id) REFERENCES mdb_units (id),
FOREIGN KEY (`cID`) REFERENCES mdb_columns (`ID`)
) WITH SYSTEM VERSIONING;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment