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
969a344b
Commit
969a344b
authored
13 years ago
by
Andy Yates
Browse files
Options
Downloads
Patches
Plain Diff
Removed stable ID foreign keys and added data file ones
parent
26cef971
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
+3
-12
3 additions, 12 deletions
sql/foreign_keys.sql
with
3 additions
and
12 deletions
sql/foreign_keys.sql
+
3
−
12
View file @
969a344b
...
...
@@ -18,6 +18,9 @@ ALTER table assembly ADD FOREIGN KEY (cmp_seq_region_id) REFERENCES seq_region(s
ALTER
table
assembly_exception
ADD
FOREIGN
KEY
(
exc_seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
assembly_exception
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
data_file
ADD
FOREIGN
KEY
(
coord_system_id
)
REFERENCES
coord_system
(
coord_system_id
);
ALTER
table
data_file
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
table
density_feature
ADD
FOREIGN
KEY
(
density_type_id
)
REFERENCES
density_type
(
density_type_id
);
ALTER
table
density_feature
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
...
...
@@ -42,8 +45,6 @@ ALTER table dnac ADD FOREIGN KEY (seq_region_id) REFERENCES seq_region(seq_regio
ALTER
table
exon
ADD
FOREIGN
KEY
(
seq_region_id
)
REFERENCES
seq_region
(
seq_region_id
);
ALTER
table
exon_stable_id
ADD
FOREIGN
KEY
(
exon_id
)
REFERENCES
exon
(
exon_id
);
ALTER
table
exon_transcript
ADD
FOREIGN
KEY
(
exon_id
)
REFERENCES
exon
(
exon_id
);
ALTER
table
exon_transcript
ADD
FOREIGN
KEY
(
transcript_id
)
REFERENCES
transcript
(
transcript_id
);
...
...
@@ -60,8 +61,6 @@ 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
(
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
ontology_xref
ADD
FOREIGN
KEY
(
object_xref_id
)
REFERENCES
object_xref
(
object_xref_id
);
ALTER
table
ontology_xref
ADD
FOREIGN
KEY
(
source_xref_id
)
REFERENCES
xref
(
xref_id
);
...
...
@@ -99,14 +98,10 @@ ALTER table object_xref ADD FOREIGN KEY (analysis_id) REFERENCES analysis(analys
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
);
...
...
@@ -170,8 +165,6 @@ ALTER table transcript ADD FOREIGN KEY (canonical_translation_id) REFERENCES tra
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
);
ALTER
table
transcript_stable_id
ADD
FOREIGN
KEY
(
transcript_id
)
REFERENCES
transcript
(
transcript_id
);
ALTER
table
transcript_supporting_feature
ADD
FOREIGN
KEY
(
transcript_id
)
REFERENCES
transcript
(
transcript_id
);
ALTER
table
translation
ADD
FOREIGN
KEY
(
end_exon_id
)
REFERENCES
exon
(
exon_id
);
...
...
@@ -181,8 +174,6 @@ ALTER table translation ADD FOREIGN KEY (transcript_id) REFERENCES transcript(tr
ALTER
table
translation_attrib
ADD
FOREIGN
KEY
(
attrib_type_id
)
REFERENCES
attrib_type
(
attrib_type_id
);
ALTER
table
translation_attrib
ADD
FOREIGN
KEY
(
translation_id
)
REFERENCES
translation
(
translation_id
);
ALTER
table
translation_stable_id
ADD
FOREIGN
KEY
(
translation_id
)
REFERENCES
translation
(
translation_id
);
ALTER
table
unconventional_transcript_association
ADD
FOREIGN
KEY
(
gene_id
)
REFERENCES
gene
(
gene_id
);
ALTER
table
unconventional_transcript_association
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