diff --git a/misc-scripts/ontology/sql/patch_94_95_a.sql b/misc-scripts/ontology/sql/patch_94_95_a.sql new file mode 100644 index 0000000000000000000000000000000000000000..8270ce195c06e32b9c7fc9dd26d241c4e0b35543 --- /dev/null +++ b/misc-scripts/ontology/sql/patch_94_95_a.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_a.sql +# +# Title: Update schema version. +# +# Description: +# Update schema_version in meta table to 95. + +UPDATE meta SET meta_value='95' WHERE meta_key='schema_version'; + +# Patch identifier +INSERT INTO meta (species_id, meta_key, meta_value) + VALUES (NULL, 'patch', 'patch_94_95_a.sql|schema_version'); diff --git a/misc-scripts/ontology/sql/tables.sql b/misc-scripts/ontology/sql/tables.sql index 86307dd920e21a8ea8f46fc44abef6445544d1ca..3c87ab714f32f3195d3c165d1d217d3381739e4e 100644 --- a/misc-scripts/ontology/sql/tables.sql +++ b/misc-scripts/ontology/sql/tables.sql @@ -31,11 +31,11 @@ CREATE TABLE meta ( # Add schema type and schema version to the meta table INSERT INTO meta (meta_key, meta_value) VALUES ('schema_type', 'ontology'), - ('schema_version', '94'); + ('schema_version', '95'); # Patches included in this schema file INSERT INTO meta (meta_key, meta_value) - VALUES ('patch', 'patch_93_94_a.sql|schema_version'); + VALUES ('patch', 'patch_94_95_a.sql|schema_version'); CREATE TABLE ontology (