From 07da9c2fffa3af67872d077d7c08cd13de4c0a12 Mon Sep 17 00:00:00 2001 From: Thomas Maurel <maurel@ebi.ac.uk> Date: Wed, 26 Sep 2018 15:07:45 +0100 Subject: [PATCH] Schema patch to update Vertebrates division names in the meta table from Ensembl to EnsemblVertebrates for consistency. See declaration for details: https://www.ebi.ac.uk/panda/jira/browse/ENSINT-104. --- sql/patch_94_95_b.sql | 27 +++++++++++++++++++++++++++ sql/table.sql | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 sql/patch_94_95_b.sql diff --git a/sql/patch_94_95_b.sql b/sql/patch_94_95_b.sql new file mode 100644 index 0000000000..40bb1f181b --- /dev/null +++ b/sql/patch_94_95_b.sql @@ -0,0 +1,27 @@ +-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute +-- Copyright [2016-2018] EMBL-European Bioinformatics Institute +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +# patch_94_95_b.sql +# +# Title: Update vertebrates division name +# +# Description: +# Update Vertebrates division name from Ensembl to EnsemblVertebrates in the meta table for consistency + +UPDATE meta SET meta_value = 'EnsemblVertebrates' where meta_key = 'species.division' and meta_value = 'Ensembl'; + +# Patch identifier +INSERT INTO meta (species_id, meta_key, meta_value) + VALUES (NULL, 'patch', 'patch_94_95_b.sql|vertebrate_division_rename'); \ No newline at end of file diff --git a/sql/table.sql b/sql/table.sql index 6ac5c7e7e5..303aebd9c5 100755 --- a/sql/table.sql +++ b/sql/table.sql @@ -316,6 +316,9 @@ INSERT INTO meta (species_id, meta_key, meta_value) VALUES INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_94_95_a.sql|schema_version'); +INSERT INTO meta (species_id, meta_key, meta_value) + VALUES (NULL, 'patch', 'patch_94_95_b.sql|vertebrate_division_rename'); + /** @table meta_coord -- GitLab