diff --git a/modules/t/test-genome-DBs/homo_sapiens/funcgen/meta.txt b/modules/t/test-genome-DBs/homo_sapiens/funcgen/meta.txt index 250fafd05..c0ba4857e 100644 --- a/modules/t/test-genome-DBs/homo_sapiens/funcgen/meta.txt +++ b/modules/t/test-genome-DBs/homo_sapiens/funcgen/meta.txt @@ -1,4 +1,4 @@ -534 \N schema_version 107 +534 \N schema_version 108 156 1 species.production_name homo_sapiens 223 \N schema_type funcgen 589 \N patch patch_78_79_a.sql|schema_version @@ -196,3 +196,4 @@ 788 \N patch patch_104_105_b.sql|New indices 789 \N patch patch_105_106_a.sql|schema_version 790 \N patch patch_106_107_a.sql|schema_version +791 \N patch patch_107_108_a.sql|schema_version diff --git a/sql/patch_107_108_a.sql b/sql/patch_107_108_a.sql new file mode 100644 index 000000000..5d6b23622 --- /dev/null +++ b/sql/patch_107_108_a.sql @@ -0,0 +1,23 @@ +-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute +-- Copyright [2016-2022] 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. + +/** +@header patch_107_108_a.sql - schema version +@desc Update schema_version in meta table to 108 +*/ + +UPDATE meta SET meta_value='108' WHERE meta_key='schema_version'; + +-- patch identifier +INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_107_108_a.sql|schema_version'); diff --git a/sql/table.sql b/sql/table.sql index 3d0b31884..e4dabfad0 100755 --- a/sql/table.sql +++ b/sql/table.sql @@ -1660,8 +1660,8 @@ CREATE TABLE `meta` ( INSERT INTO meta (meta_key, meta_value, species_id) VALUES ('schema_type', 'funcgen', NULL); -- Update and remove these for each release to avoid erroneous patching -INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'schema_version', '107'); -INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_106_107_a.sql|schema_version'); +INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'schema_version', '108'); +INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_107_108_a.sql|schema_version'); /** @table meta_coord