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
a991458b
Commit
a991458b
authored
15 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Added new tables and columns, removed old ones (e.g. oligo_*)
parent
dce6c569
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
+23
-10
23 additions, 10 deletions
sql/foreign_keys.sql
with
23 additions
and
10 deletions
sql/foreign_keys.sql
+
23
−
10
View file @
a991458b
...
...
@@ -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
dependent_xref
ADD
FOREIGN
KEY
(
object_xref_id
)
REFERENCES
object_xref
(
object_xref_id
);
ALTER
table
dependent_xref
ADD
FOREIGN
KEY
(
master_xref_id
)
REFERENCES
xref
(
xref_id
);
ALTER
table
dependent_xref
ADD
FOREIGN
KEY
(
dependent_xref_id
)
REFERENCES
xref
(
xref_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
);
...
...
@@ -32,6 +36,7 @@ ALTER table dna ADD FOREIGN KEY (seq_region_id) REFERENCES seq_region(seq_region
ALTER
table
dna_align_feature
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
table
dna_align_feature
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
dna_align_feature
ADD
FOREIGN
KEY
(
external_db_id
)
REFERENCES
external_db
(
external_db_id
);
ALTER
table
dna_align_feature
ADD
FOREIGN
KEY
(
pair_dna_align_feature_id
)
REFERENCES
dna_align_feature
(
dna_align_feature_id
);
ALTER
table
dnac
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
...
...
@@ -47,18 +52,19 @@ ALTER table external_synonym ADD FOREIGN KEY (xref_id) REFERENCES xref(xref_id);
ALTER
table
gene
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
table
gene
ADD
FOREIGN
KEY
(
display_xref_id
)
REFERENCES
xref
(
xref_id
);
ALTER
table
gene
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
gene
ADD
FOREIGN
KEY
(
canonical_transcript_id
)
REFERENCES
transcript
(
transcript_id
);
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_archive
ADD
FOREIGN
KEY
(
mapping_session_id
)
REFERENCES
mapping_session
(
mapping_session_id
);
ALTER
table
gene_archive
ADD
FOREIGN
KEY
(
peptide_archive_id
)
REFERENCES
peptide_archive
(
peptide_archive_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
);
ALTER
table
go_xref
ADD
FOREIGN
KEY
(
source_xref_id
)
REFERENCES
xref
(
xref_id
);
ALTER
table
identity_xref
ADD
FOREIGN
KEY
(
object_xref_id
)
REFERENCES
object_xref
(
object_xref_id
);
ALTER
table
karyotype
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
...
...
@@ -90,14 +96,6 @@ 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
oligo_array
ADD
FOREIGN
KEY
(
parent_array_id
)
REFERENCES
oligo_array
(
oligo_array_id
);
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
);
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
);
...
...
@@ -130,15 +128,30 @@ ALTER table seq_region ADD FOREIGN KEY (coord_system_id) REFERENCES coord_system
ALTER
table
seq_region_attrib
ADD
FOREIGN
KEY
(
attrib_type_id
)
REFERENCES
attrib_type
(
attrib_type_id
);
ALTER
table
seq_region_attrib
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
seq_region_mapping
ADD
FOREIGN
KEY
(
internal_seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
seq_region_mapping
ADD
FOREIGN
KEY
(
mapping_set_id
)
REFERENCES
mapping_set
(
mapping_set_id
);
ALTER
table
simple_feature
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
table
simple_feature
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
splicing_event
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
splicing_event
ADD
FOREIGN
KEY
(
gene_id
)
REFERENCES
gene
(
gene_id
);
ALTER
table
splicing_event_feature
ADD
FOREIGN
KEY
(
splicing_event_id
)
REFERENCES
splicing_event
(
splicing_event_id
);
ALTER
table
splicing_event_feature
ADD
FOREIGN
KEY
(
exon_id
)
REFERENCES
exon
(
exon_id
);
ALTER
table
splicing_event_feature
ADD
FOREIGN
KEY
(
transcript_id
)
REFERENCES
transcript
(
transcript_id
);
ALTER
table
splicing_transcript_pair
ADD
FOREIGN
KEY
(
splicing_event_id
)
REFERENCES
splicing_event
(
splicing_event_id
);
ALTER
table
splicing_transcript_pair
ADD
FOREIGN
KEY
(
transcript_id_1
)
REFERENCES
transcript
(
transcript_id
);
ALTER
table
splicing_transcript_pair
ADD
FOREIGN
KEY
(
transcript_id_2
)
REFERENCES
transcript
(
transcript_id
);
ALTER
table
supporting_feature
ADD
FOREIGN
KEY
(
exon_id
)
REFERENCES
exon
(
exon_id
);
ALTER
table
transcript
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
table
transcript
ADD
FOREIGN
KEY
(
display_xref_id
)
REFERENCES
xref
(
xref_id
);
ALTER
table
transcript
ADD
FOREIGN
KEY
(
gene_id
)
REFERENCES
gene
(
gene_id
);
ALTER
table
transcript
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
transcript
ADD
FOREIGN
KEY
(
canonical_translation_id
)
REFERENCES
translation
(
translation_id
);
ALTER
table
transcript_attrib
ADD
FOREIGN
KEY
(
attrib_type_id
)
REFERENCES
attrib_type
(
attrib_type_id
);
ALTER
table
transcript_attrib
ADD
FOREIGN
KEY
(
transcript_id
)
REFERENCES
transcript
(
transcript_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