Commit 6399c37b authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-2967: update schema to 96

parent e3f8508b
...@@ -479,7 +479,7 @@ CREATE TABLE `meta` ( ...@@ -479,7 +479,7 @@ CREATE TABLE `meta` (
PRIMARY KEY (`meta_id`), PRIMARY KEY (`meta_id`),
UNIQUE KEY `species_key_value_idx` (`species_id`,`meta_key`,`meta_value`), UNIQUE KEY `species_key_value_idx` (`species_id`,`meta_key`,`meta_value`),
KEY `species_value_idx` (`species_id`,`meta_value`) KEY `species_value_idx` (`species_id`,`meta_value`)
) ENGINE=MyISAM AUTO_INCREMENT=222 DEFAULT CHARSET=latin1; ) ENGINE=MyISAM AUTO_INCREMENT=224 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` ( CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '', `table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
...@@ -533,7 +533,7 @@ CREATE TABLE `object_xref` ( ...@@ -533,7 +533,7 @@ CREATE TABLE `object_xref` (
`linkage_annotation` varchar(255) COLLATE latin1_bin DEFAULT NULL, `linkage_annotation` varchar(255) COLLATE latin1_bin DEFAULT NULL,
`analysis_id` smallint(5) unsigned DEFAULT NULL, `analysis_id` smallint(5) unsigned DEFAULT NULL,
PRIMARY KEY (`object_xref_id`), PRIMARY KEY (`object_xref_id`),
UNIQUE KEY `xref_idx` (`xref_id`,`ensembl_object_type`,`ensembl_id`,`analysis_id`), UNIQUE KEY `xref_idx` (`xref_id`,`ensembl_object_type`,`ensembl_id`),
KEY `ensembl_idx` (`ensembl_object_type`,`ensembl_id`), KEY `ensembl_idx` (`ensembl_object_type`,`ensembl_id`),
KEY `analysis_idx` (`analysis_id`) KEY `analysis_idx` (`analysis_id`)
) ENGINE=MyISAM AUTO_INCREMENT=81424 DEFAULT CHARSET=latin1 COLLATE=latin1_bin; ) ENGINE=MyISAM AUTO_INCREMENT=81424 DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
......
-- 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_95_96_a.sql
#
# Title: Update schema version.
#
# Description:
# Update schema_version in meta table to 96.
UPDATE meta SET meta_value='96' WHERE meta_key='schema_version';
# Patch identifier
INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_95_96_a.sql|schema_version');
...@@ -308,19 +308,13 @@ CREATE TABLE IF NOT EXISTS meta ( ...@@ -308,19 +308,13 @@ CREATE TABLE IF NOT EXISTS meta (
# Add schema type and schema version to the meta table. # Add schema type and schema version to the meta table.
INSERT INTO meta (species_id, meta_key, meta_value) VALUES INSERT INTO meta (species_id, meta_key, meta_value) VALUES
(NULL, 'schema_type', 'core'), (NULL, 'schema_type', 'core'),
(NULL, 'schema_version', '95'); (NULL, 'schema_version', '96');
# Patches included in this schema file: # Patches included in this schema file:
# NOTE: At start of release cycle, remove patch entries from last release. # NOTE: At start of release cycle, remove patch entries from last release.
# NOTE: Avoid line-breaks in values. # NOTE: Avoid line-breaks in values.
INSERT INTO meta (species_id, meta_key, meta_value) INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_94_95_a.sql|schema_version'); VALUES (NULL, 'patch', 'patch_95_96_a.sql|schema_version');
INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_94_95_b.sql|vertebrate_division_rename');
INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_94_95_c.sql|ox_key_update');
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment