From 7384f6d95093305e7eaaebc2778f4bafb957b638 Mon Sep 17 00:00:00 2001
From: Guy Naamati <gnaamati@ebi.ac.uk>
Date: Fri, 6 Jan 2017 11:14:08 +0000
Subject: [PATCH] seq_region name should be varchar(255)

---
 sql/patch_87_88_b.sql | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 sql/patch_87_88_b.sql

diff --git a/sql/patch_87_88_b.sql b/sql/patch_87_88_b.sql
new file mode 100644
index 0000000000..32b212e802
--- /dev/null
+++ b/sql/patch_87_88_b.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_b.sql
+#
+# Title: Allow seq_region name to be longer
+#
+# Description:
+# Name in seq_region table will be enlarged to VARCHAR(255)
+
+ALTER TABLE seq_region MODIFY COLUMN name VARCHAR(255) NOT NULL;
+
+# Patch identifier
+INSERT INTO meta (species_id, meta_key, meta_value)
+  VALUES (NULL, 'patch', 'patch_87_88_b.sql|seq_region_name_255');
-- 
GitLab