Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/t/test-genome-DBs/homo_sapiens/funcgen/meta.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
23 changes: 23 additions & 0 deletions sql/patch_107_108_a.sql
Original file line number Diff line number Diff line change
@@ -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');
4 changes: 2 additions & 2 deletions sql/table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down