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
095f2101
Commit
095f2101
authored
18 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Added some missing foreign keys, and also keys for ditag tables.
parent
f3dbc6ca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/foreign_keys.sql
+9
-1
9 additions, 1 deletion
sql/foreign_keys.sql
with
9 additions
and
1 deletion
sql/foreign_keys.sql
+
9
−
1
View file @
095f2101
...
...
@@ -23,6 +23,10 @@ ALTER table density_feature ADD FOREIGN KEY (seq_region_id) REFERENCES seq_regio
ALTER
table
density_type
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
table
ditag_feature
ADD
FOREIGN
KEY
(
ditag_id
)
REFERENCES
ditag
(
ditag_id
);
ALTER
table
ditag_feature
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
ditag_feature
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
table
dna
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
dna_align_feature
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
...
...
@@ -46,6 +50,8 @@ ALTER table gene ADD FOREIGN KEY (seq_region_id) REFERENCES seq_region(seq_regio
ALTER
table
gene_attrib
ADD
FOREIGN
KEY
(
attrib_type_id
)
REFERENCES
attrib_type
(
attrib_type_id
);
ALTER
table
gene_attrib
ADD
FOREIGN
KEY
(
gene_id
)
REFERENCES
gene
(
gene_id
);
ALTER
table
gene_archive
ADD
FOREIGN
KEY
(
mapping_session_id
)
REFERENCES
mapping_session
(
mapping_session_id
);
ALTER
table
gene_stable_id
ADD
FOREIGN
KEY
(
gene_id
)
REFERENCES
gene
(
gene_id
);
ALTER
table
go_xref
ADD
FOREIGN
KEY
(
object_xref_id
)
REFERENCES
object_xref
(
object_xref_id
);
...
...
@@ -83,6 +89,7 @@ ALTER table oligo_array ADD FOREIGN KEY (parent_array_id) REFERENCES oligo_array
ALTER
table
oligo_feature
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
table
oligo_feature
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
oligo_feature
ADD
FOREIGN
KEY
(
oligo_probe_id
)
REFERENCES
oligo_probe
(
oligo_probe_id
);
ALTER
table
oligo_probe
ADD
FOREIGN
KEY
(
oligo_array_id
)
REFERENCES
oligo_array
(
oligo_array_id
);
...
...
@@ -158,4 +165,5 @@ ALTER table unmapped_object ADD FOREIGN KEY (analysis_id) REFERENCES analysis(an
ALTER
table
unmapped_object
ADD
FOREIGN
KEY
(
external_db_id
)
REFERENCES
external_db
(
external_db_id
);
ALTER
table
unmapped_object
ADD
FOREIGN
KEY
(
unmapped_reason_id
)
REFERENCES
unmapped_reason
(
unmapped_reason_id
);
ALTER
table
xref
ADD
FOREIGN
KEY
(
external_db_id
)
REFERENCES
external_db
(
external_db_id
);
\ No newline at end of file
ALTER
table
xref
ADD
FOREIGN
KEY
(
external_db_id
)
REFERENCES
external_db
(
external_db_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