Commit 62c5242b authored by Tiago Grego's avatar Tiago Grego
Browse files

patch test dbs with ontology schema 97

parent 627a90fa
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:09 2019
-- Created on Tue Feb 12 11:45:04 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:12 2019
-- Created on Tue Feb 12 11:45:08 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:15 2019
-- Created on Tue Feb 12 11:45:11 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:18 2019
-- Created on Tue Feb 12 11:45:14 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:19 2019
-- Created on Tue Feb 12 11:45:15 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:23 2019
-- Created on Tue Feb 12 11:45:18 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:25 2019
-- Created on Tue Feb 12 11:45:21 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:28 2019
-- Created on Tue Feb 12 11:45:24 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:31 2019
-- Created on Tue Feb 12 11:45:27 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:33 2019
-- Created on Tue Feb 12 11:45:29 2019
--
BEGIN TRANSACTION;
......
......@@ -9,7 +9,7 @@
10 patch patch_72_73_b.sql|meta \N
12 patch patch_73_74_a.sql|schema_version \N
14 patch patch_74_75_a.sql|schema_version \N
15 schema_version 96 \N
15 schema_version 97 \N
16 patch patch_75_76_a.sql|schema_version \N
17 patch patch_76_77_a.sql|schema_version \N
18 patch patch_77_78_a.sql|schema_version \N
......@@ -39,3 +39,4 @@
42 patch patch_94_95_a.sql|schema_version \N
43 patch patch_95_96_a.sql|schema_version \N
44 patch patch_95_96_b.sql|term_ontology_update \N
45 patch patch_96_97_a.sql|schema_version \N
......@@ -5,7 +5,7 @@ CREATE TABLE `alt_id` (
PRIMARY KEY (`alt_id`),
UNIQUE KEY `term_alt_idx` (`term_id`,`alt_id`),
KEY `ix_alt_id_accession` (`accession`)
) ENGINE=MyISAM AUTO_INCREMENT=7;
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
CREATE TABLE `aux_GO_Cross_product_review_map` (
`term_id` int(10) unsigned NOT NULL,
......@@ -132,26 +132,26 @@ CREATE TABLE `closure` (
KEY `ix_closure_subparent_term_id` (`subparent_term_id`),
KEY `ix_closure_ontology_id` (`ontology_id`),
KEY `parent_subparent_idx` (`parent_term_id`,`subparent_term_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1453438;
) ENGINE=MyISAM AUTO_INCREMENT=1453438 DEFAULT CHARSET=latin1;
CREATE TABLE `meta` (
`meta_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`meta_key` varchar(64) NOT NULL,
`meta_value` varchar(128) DEFAULT NULL,
`meta_key` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`meta_value` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
`species_id` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`meta_id`),
UNIQUE KEY `key_value_idx` (`meta_key`,`meta_value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=44;
) ENGINE=MyISAM AUTO_INCREMENT=46 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `ontology` (
`ontology_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
`namespace` varchar(64) NOT NULL,
`data_version` varchar(64) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`namespace` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`data_version` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`ontology_id`),
UNIQUE KEY `ontology_name_namespace_idx` (`name`,`namespace`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8;
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `relation` (
`relation_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
......@@ -165,47 +165,47 @@ CREATE TABLE `relation` (
KEY `ix_relation_parent_term_id` (`parent_term_id`),
KEY `ix_relation_relation_type_id` (`relation_type_id`),
KEY `ix_relation_ontology_id` (`ontology_id`)
) ENGINE=MyISAM AUTO_INCREMENT=68750;
) ENGINE=MyISAM AUTO_INCREMENT=68750 DEFAULT CHARSET=latin1;
CREATE TABLE `relation_type` (
`relation_type_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
PRIMARY KEY (`relation_type_id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=85;
) ENGINE=MyISAM AUTO_INCREMENT=85 DEFAULT CHARSET=latin1;
CREATE TABLE `subset` (
`subset_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
`definition` varchar(511) NOT NULL DEFAULT '',
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`definition` varchar(511) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
PRIMARY KEY (`subset_id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=18;
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `synonym` (
`synonym_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`term_id` int(10) unsigned NOT NULL,
`name` text COLLATE utf8_general_ci NOT NULL,
`type` enum('EXACT','BROAD','NARROW','RELATED') DEFAULT NULL,
`dbxref` varchar(500) DEFAULT NULL,
`name` text CHARACTER SET utf8 NOT NULL,
`type` enum('EXACT','BROAD','NARROW','RELATED') COLLATE utf8_unicode_ci DEFAULT NULL,
`dbxref` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`synonym_id`),
UNIQUE KEY `synonym_term_idx` (`term_id`,`synonym_id`),
KEY `synonym_name_idx` (`name`(100))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=104283;
) ENGINE=MyISAM AUTO_INCREMENT=104283 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `term` (
`term_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ontology_id` int(10) unsigned NOT NULL,
`subsets` text,
`accession` varchar(64) NOT NULL,
`name` varchar(255) COLLATE utf8_general_ci NOT NULL,
`definition` text COLLATE utf8_general_ci,
`is_root` int(11) NOT NULL DEFAULT 0,
`is_obsolete` int(11) NOT NULL DEFAULT 0,
`iri` text,
`subsets` text COLLATE utf8_unicode_ci,
`accession` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) CHARACTER SET utf8 NOT NULL,
`definition` text CHARACTER SET utf8,
`is_root` int(11) NOT NULL DEFAULT '0',
`is_obsolete` int(11) NOT NULL DEFAULT '0',
`iri` text COLLATE utf8_unicode_ci,
PRIMARY KEY (`term_id`),
UNIQUE KEY `accession` (`accession`),
UNIQUE KEY `term_ontology_acc_idx` (`ontology_id`,`accession`),
KEY `term_name_idx` (`name`(100))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=45001;
) ENGINE=MyISAM AUTO_INCREMENT=45001 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:37 2019
-- Created on Tue Feb 12 11:45:32 2019
--
BEGIN TRANSACTION;
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Feb 12 11:39:40 2019
-- Created on Tue Feb 12 11:45:35 2019
--
BEGIN TRANSACTION;
......
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