From 9f01e3e6eb9133a37b2a9ceb0f7386c3a7b00ec4 Mon Sep 17 00:00:00 2001
From: Magali Ruffier <mr6@ebi.ac.uk>
Date: Thu, 5 Jan 2017 13:33:32 +0000
Subject: [PATCH] update ontology for release 88

---
 misc-scripts/ontology/sql/patch_87_88_a.sql | 27 +++++++++++++++++++++
 misc-scripts/ontology/sql/tables.sql        |  4 +--
 2 files changed, 29 insertions(+), 2 deletions(-)
 create mode 100644 misc-scripts/ontology/sql/patch_87_88_a.sql

diff --git a/misc-scripts/ontology/sql/patch_87_88_a.sql b/misc-scripts/ontology/sql/patch_87_88_a.sql
new file mode 100644
index 0000000000..bc273d641e
--- /dev/null
+++ b/misc-scripts/ontology/sql/patch_87_88_a.sql
@@ -0,0 +1,27 @@
+-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
+-- Copyright [2016] 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_87_88_a.sql
+#
+# Title: Update schema version.
+#
+# Description:
+#   Update schema_version in meta table to 88.
+
+UPDATE meta SET meta_value='88' WHERE meta_key='schema_version';
+
+# Patch identifier
+INSERT INTO meta (species_id, meta_key, meta_value)
+  VALUES (NULL, 'patch', 'patch_87_88_a.sql|schema_version');
diff --git a/misc-scripts/ontology/sql/tables.sql b/misc-scripts/ontology/sql/tables.sql
index 56d697e788..497302a90f 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', '87');
+  ('schema_version', '86');
 
 # Patches included in this schema file
 INSERT INTO meta (meta_key, meta_value)
-  VALUES ('patch', 'patch_86_87_d.sql|default_value_confident_relationship');
+  VALUES ('patch', 'patch_86_87_a.sql|schema_version');
 
 
 CREATE TABLE ontology (
-- 
GitLab