diff --git a/sql/patch_48_49_b.sql b/sql/patch_48_49_b.sql new file mode 100644 index 0000000000000000000000000000000000000000..4da9a7ff8a9cfb792b594a38bb480f64834f26a1 --- /dev/null +++ b/sql/patch_48_49_b.sql @@ -0,0 +1,11 @@ +# patch_48_49_b.sql +# +# title: new canonical transcript column n gene table +# +# description: +# Add canonical_transcript column to gene table + +ALTER TABLE gene ADD COLUMN canonical_transcript INT(10) UNSIGNED; + +# patch identifier +INSERT INTO meta (meta_key, meta_value) VALUES ('patch', 'patch_48_49_b.sql|new_canonical_transcript_column'); diff --git a/sql/patch_48_49_c.sql b/sql/patch_48_49_c.sql new file mode 100644 index 0000000000000000000000000000000000000000..da6475dacd29a722c11d2bd7f7c651d7c1022f50 --- /dev/null +++ b/sql/patch_48_49_c.sql @@ -0,0 +1,25 @@ +# patch_48_49_c.sql +# +# title: regulatory_support_removal +# +# description: +# regulatory tables to be removed from database (now done by func gen) + +DELETE object_xref FROM object_xref where ensembl_object_type = "regulatory_factor"; +DELETE object_xref FROM object_xref where ensembl_object_type = "regulatory_feature"; + +ALTER TABLE object_xref CHANGE COLUMN ensembl_object_type + ensembl_object_type ENUM('RawContig', 'Transcript', 'Gene', + 'Translation'); + +DROP TABLE regulatory_factor; +DROP TABLE regulatory_factor_coding; +DROP TABLE regulatory_feature; +DROP TABLE regulatory_feature_object; +DROP TABLE regulatory_search_region; + +# patch identifier +INSERT INTO meta (meta_key, meta_value) VALUES ('patch', 'patch_48_49_c.sql|regulatory_support_removal'); + + +