Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
78bdc120
Commit
78bdc120
authored
13 years ago
by
Monika Komorowska
Browse files
Options
Downloads
Patches
Plain Diff
Added foreign keys to operon tables.
parent
92fb00ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/foreign_keys.sql
+14
-0
14 additions, 0 deletions
sql/foreign_keys.sql
with
14 additions
and
0 deletions
sql/foreign_keys.sql
+
14
−
0
View file @
78bdc120
...
...
@@ -96,6 +96,20 @@ ALTER table misc_feature_misc_set ADD FOREIGN KEY (misc_set_id) REFERENCES misc_
ALTER
table
object_xref
ADD
FOREIGN
KEY
(
xref_id
)
REFERENCES
xref
(
xref_id
);
ALTER
table
object_xref
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
TABLE
operon
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
TABLE
operon
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
TABLE
operon_stable_id
ADD
FOREIGN
KEY
(
operon_id
)
REFERENCES
operon
(
operon_id
);
ALTER
TABLE
operon_transcript
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
TABLE
operon_transcript
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
TABLE
operon_transcript
ADD
FOREIGN
KEY
(
operon_id
)
REFERENCES
operon
(
operon_id
);
ALTER
TABLE
operon_transcript_stable_id
ADD
FOREIGN
KEY
(
operon_transcript_id
)
REFERENCES
operon_transcript
(
operon_transcript_id
);
ALTER
TABLE
operon_transcript_gene
ADD
FOREIGN
KEY
(
operon_transcript_id
)
REFERENCES
operon_transcript
(
operon_transcript_id
);
ALTER
TABLE
operon_transcript_gene
ADD
FOREIGN
KEY
(
gene_id
)
REFERENCES
gene
(
gene_id
);
ALTER
table
prediction_exon
ADD
FOREIGN
KEY
(
prediction_transcript_id
)
REFERENCES
prediction_transcript
(
prediction_transcript_id
);
ALTER
table
prediction_exon
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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