diff --git a/misc-scripts/ontology/sql/patch_96_97_a.sql b/misc-scripts/ontology/sql/patch_96_97_a.sql new file mode 100644 index 0000000000000000000000000000000000000000..5bf79699589b4d13dd62a074f60082403126e0ea --- /dev/null +++ b/misc-scripts/ontology/sql/patch_96_97_a.sql @@ -0,0 +1,27 @@ +-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute +-- Copyright [2016-2019] 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_96_97_a.sql +# +# Title: Update schema version. +# +# Description: +# Update schema_version in meta table to 97. + +UPDATE meta SET meta_value='97' WHERE meta_key='schema_version'; + +# Patch identifier +INSERT INTO meta (species_id, meta_key, meta_value) + VALUES (NULL, 'patch', 'patch_96_97_a.sql|schema_version'); diff --git a/misc-scripts/ontology/sql/tables.sql b/misc-scripts/ontology/sql/tables.sql index 634678632c1a674328fa7e25ac8768da9410256d..f04fb462c27ee6800995f974b2c9dab2ae949beb 100644 --- a/misc-scripts/ontology/sql/tables.sql +++ b/misc-scripts/ontology/sql/tables.sql @@ -30,14 +30,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', '96'); + ('schema_version', '97'); # Patches included in this schema file INSERT INTO meta (meta_key, meta_value) - VALUES ('patch', 'patch_95_96_a.sql|schema_version'); - -INSERT INTO meta (species_id, meta_key, meta_value) - VALUES (NULL, 'patch', 'patch_95_96_b.sql|term_ontology_update'); + VALUES ('patch', 'patch_96_97_a.sql|schema_version'); CREATE TABLE `ontology` ( `ontology_id` int(10) unsigned NOT NULL AUTO_INCREMENT,