From 6e83c43375b0d943299bcc252db2669224c7d7c0 Mon Sep 17 00:00:00 2001 From: Magali Ruffier <mr6@ebi.ac.uk> Date: Tue, 10 May 2016 11:28:27 +0100 Subject: [PATCH] Update to release 85 --- modules/Bio/EnsEMBL/ApiVersion.pm | 2 +- sql/patch_84_85_a.sql | 26 ++++++++++++++++++++++++++ sql/table.sql | 12 ++---------- 3 files changed, 29 insertions(+), 11 deletions(-) create mode 100644 sql/patch_84_85_a.sql diff --git a/modules/Bio/EnsEMBL/ApiVersion.pm b/modules/Bio/EnsEMBL/ApiVersion.pm index d6f24fb89d..553b6d782a 100644 --- a/modules/Bio/EnsEMBL/ApiVersion.pm +++ b/modules/Bio/EnsEMBL/ApiVersion.pm @@ -55,7 +55,7 @@ use base qw( Exporter ); our @EXPORT = qw( software_version ); -my $API_VERSION = 84; +my $API_VERSION = 85; sub software_version { return $API_VERSION } diff --git a/sql/patch_84_85_a.sql b/sql/patch_84_85_a.sql new file mode 100644 index 0000000000..40c530b29c --- /dev/null +++ b/sql/patch_84_85_a.sql @@ -0,0 +1,26 @@ +-- Copyright [1999-2016] Wellcome Trust Sanger Institute and the 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_84_85_a.sql +# +# Title: Update schema version. +# +# Description: +# Update schema_version in meta table to 85. + +UPDATE meta SET meta_value='85' WHERE meta_key='schema_version'; + +# Patch identifier +INSERT INTO meta (species_id, meta_key, meta_value) + VALUES (NULL, 'patch', 'patch_84_85_a.sql|schema_version'); diff --git a/sql/table.sql b/sql/table.sql index 49b572a9d4..728a0dcb15 100755 --- a/sql/table.sql +++ b/sql/table.sql @@ -302,21 +302,13 @@ CREATE TABLE IF NOT EXISTS meta ( # Add schema type and schema version to the meta table. INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'schema_type', 'core'), - (NULL, 'schema_version', '84'); + (NULL, 'schema_version', '85'); # Patches included in this schema file: # NOTE: At start of release cycle, remove patch entries from last release. # NOTE: Avoid line-breaks in values. INSERT INTO meta (species_id, meta_key, meta_value) - VALUES (NULL, 'patch', 'patch_83_84_a.sql|schema_version'); -INSERT INTO meta (species_id, meta_key, meta_value) - VALUES (NULL, 'patch', 'patch_83_84_b.sql|xref.version_default'); -INSERT INTO meta (species_id, meta_key, meta_value) - VALUES (NULL, 'patch', 'patch_83_84_c.sql|protein_feature_unique'); -INSERT INTO meta (species_id, meta_key, meta_value) - VALUES (NULL, 'patch', 'patch_83_84_d.sql|longer_synonym'); -INSERT INTO meta (species_id, meta_key, meta_value) - VALUES (NULL, 'patch', 'patch_83_84_e.sql|nullable_versions'); + VALUES (NULL, 'patch', 'patch_84_85_a.sql|schema_version'); /** -- GitLab