diff --git a/sql/patch_110_111_a.sql b/sql/patch_110_111_a.sql new file mode 100644 index 000000000..9fa1918e1 --- /dev/null +++ b/sql/patch_110_111_a.sql @@ -0,0 +1,23 @@ +-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute +-- Copyright [2016-2023] 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_110_111_a.sql - schema version +@desc Update schema_version in meta table to 111 +*/ + +UPDATE meta SET meta_value='111' WHERE meta_key='schema_version'; + +-- patch identifier +INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_110_111_a.sql|schema_version'); diff --git a/sql/table.sql b/sql/table.sql index 9f1483bcc..14038f492 100755 --- a/sql/table.sql +++ b/sql/table.sql @@ -1685,8 +1685,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', '110'); -INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_109_110_a.sql|schema_version'); +INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'schema_version', '111'); +INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_110_111_a.sql|schema_version'); /** @table meta_coord