From f21e9d56ec89daca88610955b26e8aa7ac3716e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?=
 <ak4@sanger.ac.uk>
Date: Fri, 11 Apr 2008 15:03:49 +0000
Subject: [PATCH] Tables with regulatory data was dropped with
 'patch_48_49_c.sql', this has consequences for the foreign keys-file.

---
 sql/foreign_keys.sql | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/sql/foreign_keys.sql b/sql/foreign_keys.sql
index 6598d2df2a..ed6f4750e6 100644
--- a/sql/foreign_keys.sql
+++ b/sql/foreign_keys.sql
@@ -120,17 +120,6 @@ ALTER table qtl_feature ADD FOREIGN KEY (seq_region_id) REFERENCES seq_region(se
 
 ALTER table qtl_synonym ADD FOREIGN KEY (qtl_id) REFERENCES qtl(qtl_id);
 
-ALTER table regulatory_factor_coding ADD FOREIGN KEY (gene_id) REFERENCES gene(gene_id);
-ALTER table regulatory_factor_coding ADD FOREIGN KEY (regulatory_factor_id) REFERENCES regulatory_factor(regulatory_factor_id);
-ALTER table regulatory_factor_coding ADD FOREIGN KEY (transcript_id) REFERENCES transcript(transcript_id);
-
-ALTER table regulatory_feature ADD FOREIGN KEY (analysis_id) REFERENCES analysis(analysis_id);
-ALTER table regulatory_feature ADD FOREIGN KEY (regulatory_factor_id) REFERENCES regulatory_factor(regulatory_factor_id);
-ALTER table regulatory_feature ADD FOREIGN KEY (seq_region_id) REFERENCES seq_region(seq_region_id);
-
-ALTER table regulatory_search_region ADD FOREIGN KEY (analysis_id) REFERENCES analysis(analysis_id);
-ALTER table regulatory_search_region ADD FOREIGN KEY (seq_region_id) REFERENCES seq_region(seq_region_id);
-
 ALTER table repeat_feature ADD FOREIGN KEY (analysis_id) REFERENCES analysis(analysis_id);
 ALTER table repeat_feature ADD FOREIGN KEY (repeat_consensus_id) REFERENCES repeat_consensus(repeat_consensus_id);
 ALTER table repeat_feature ADD FOREIGN KEY (seq_region_id) REFERENCES seq_region(seq_region_id);
-- 
GitLab