Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
8e595ab3
Verified
Commit
8e595ab3
authored
4 months ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
More FKs
Signed-off-by:
Martin Weise
<
martin.weise@tuwien.ac.at
>
parent
e6269ff0
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!387
Wrong model
,
!384
Wrong model
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbrepo-metadata-db/1_setup-schema.sql
+2
-0
2 additions, 0 deletions
dbrepo-metadata-db/1_setup-schema.sql
with
2 additions
and
0 deletions
dbrepo-metadata-db/1_setup-schema.sql
+
2
−
0
View file @
8e595ab3
...
@@ -251,6 +251,7 @@ CREATE TABLE IF NOT EXISTS `mdb_columns_concepts`
...
@@ -251,6 +251,7 @@ CREATE TABLE IF NOT EXISTS `mdb_columns_concepts`
cID
VARCHAR
(
36
)
NOT
NULL
,
cID
VARCHAR
(
36
)
NOT
NULL
,
created
TIMESTAMP
NOT
NULL
DEFAULT
NOW
(),
created
TIMESTAMP
NOT
NULL
DEFAULT
NOW
(),
PRIMARY
KEY
(
id
,
cid
),
PRIMARY
KEY
(
id
,
cid
),
FOREIGN
KEY
(
`id`
)
REFERENCES
mdb_concepts
(
`id`
),
FOREIGN
KEY
(
`cID`
)
REFERENCES
mdb_columns
(
`ID`
)
FOREIGN
KEY
(
`cID`
)
REFERENCES
mdb_columns
(
`ID`
)
)
WITH
SYSTEM
VERSIONING
;
)
WITH
SYSTEM
VERSIONING
;
...
@@ -260,6 +261,7 @@ CREATE TABLE IF NOT EXISTS `mdb_columns_units`
...
@@ -260,6 +261,7 @@ CREATE TABLE IF NOT EXISTS `mdb_columns_units`
cID
VARCHAR
(
36
)
NOT
NULL
,
cID
VARCHAR
(
36
)
NOT
NULL
,
created
TIMESTAMP
NOT
NULL
DEFAULT
NOW
(),
created
TIMESTAMP
NOT
NULL
DEFAULT
NOW
(),
PRIMARY
KEY
(
id
,
cID
),
PRIMARY
KEY
(
id
,
cID
),
FOREIGN
KEY
(
id
)
REFERENCES
mdb_units
(
id
),
FOREIGN
KEY
(
`cID`
)
REFERENCES
mdb_columns
(
`ID`
)
FOREIGN
KEY
(
`cID`
)
REFERENCES
mdb_columns
(
`ID`
)
)
WITH
SYSTEM
VERSIONING
;
)
WITH
SYSTEM
VERSIONING
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment