Skip to content
Snippets Groups Projects
Commit 095f2101 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

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
......@@ -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);
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment