Commit 7e97c748 authored by premanand17's avatar premanand17
Browse files

Version update 86->87 and release 87 patches

parent 86f7f2dd
......@@ -39,7 +39,7 @@
95 \N patch patch_83_84_c.sql|protein_feature_unique
96 \N patch patch_83_84_d.sql|longer_synonym
1 \N schema_type core
2 \N schema_version 86
2 \N schema_version 87
8 1 assembly.accession GCA_000292705.1
10 1 assembly.date 2012-08
7 1 assembly.default GCA_000292705.1
......@@ -100,3 +100,6 @@
100 \N patch patch_85_86_a.sql|schema_version
101 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
102 \N patch patch_85_86_c.sql|meta_case_insensitive
103 \N patch patch_86_87_a.sql|schema_version
104 \N patch patch_86_87_b.sql|meta_value_NOT_NULL
105 \N patch patch_86_87_c.sql|datetime_default_NULL
......@@ -20,7 +20,7 @@ CREATE TABLE `alt_allele_group` (
CREATE TABLE `analysis` (
`analysis_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created` datetime DEFAULT NULL,
`logic_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
`db` varchar(120) COLLATE latin1_bin DEFAULT NULL,
`db_version` varchar(40) COLLATE latin1_bin DEFAULT NULL,
......@@ -247,8 +247,8 @@ CREATE TABLE `exon` (
`is_constitutive` tinyint(1) NOT NULL DEFAULT '0',
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`exon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `stable_id_idx` (`stable_id`,`version`)
......@@ -301,8 +301,8 @@ CREATE TABLE `gene` (
`canonical_transcript_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`gene_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `xref_id_index` (`display_xref_id`),
......@@ -342,7 +342,7 @@ CREATE TABLE `genome_statistics` (
`value` bigint(11) unsigned NOT NULL DEFAULT '0',
`species_id` int(10) unsigned DEFAULT '1',
`attrib_type_id` int(10) unsigned DEFAULT NULL,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`timestamp` datetime DEFAULT NULL,
PRIMARY KEY (`genome_statistics_id`),
UNIQUE KEY `stats_uniq` (`statistic`,`attrib_type_id`,`species_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......@@ -409,7 +409,7 @@ CREATE TABLE `mapping_session` (
`new_release` varchar(5) COLLATE latin1_bin NOT NULL DEFAULT '',
`old_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`new_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`created` datetime NOT NULL,
`created` datetime DEFAULT NULL,
PRIMARY KEY (`mapping_session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
......@@ -477,7 +477,7 @@ CREATE TABLE `meta` (
PRIMARY KEY (`meta_id`),
UNIQUE KEY `species_key_value_idx` (`species_id`,`meta_key`,`meta_value`),
KEY `species_value_idx` (`species_id`,`meta_value`)
) ENGINE=MyISAM AUTO_INCREMENT=102 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=106 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......@@ -555,8 +555,8 @@ CREATE TABLE `operon` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `name_idx` (`display_label`),
......@@ -574,8 +574,8 @@ CREATE TABLE `operon_transcript` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_transcript_id`),
KEY `operon_idx` (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -790,8 +790,8 @@ CREATE TABLE `transcript` (
`canonical_translation_id` int(10) unsigned DEFAULT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`transcript_id`),
UNIQUE KEY `canonical_translation_idx` (`canonical_translation_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -837,8 +837,8 @@ CREATE TABLE `translation` (
`end_exon_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`translation_id`),
KEY `transcript_idx` (`transcript_id`),
KEY `stable_id_idx` (`stable_id`,`version`)
......
1 \N schema_version 86
1 \N schema_version 87
2 1 assembly.default NCBI34
3 1 species.taxonomy_id 9606
26 1 species.classification Homo sapiens
......@@ -79,3 +79,6 @@
146 \N patch patch_85_86_a.sql|schema_version
147 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
148 \N patch patch_85_86_c.sql|meta_case_insensitive
149 \N patch patch_86_87_a.sql|schema_version
150 \N patch patch_86_87_b.sql|meta_value_NOT_NULL
151 \N patch patch_86_87_c.sql|datetime_default_NULL
......@@ -20,7 +20,7 @@ CREATE TABLE `alt_allele_group` (
CREATE TABLE `analysis` (
`analysis_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created` datetime DEFAULT NULL,
`logic_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
`db` varchar(120) COLLATE latin1_bin DEFAULT NULL,
`db_version` varchar(40) COLLATE latin1_bin DEFAULT NULL,
......@@ -247,8 +247,8 @@ CREATE TABLE `exon` (
`is_constitutive` tinyint(1) NOT NULL DEFAULT '0',
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`exon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `stable_id_idx` (`stable_id`,`version`)
......@@ -301,8 +301,8 @@ CREATE TABLE `gene` (
`canonical_transcript_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`gene_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `xref_id_index` (`display_xref_id`),
......@@ -342,7 +342,7 @@ CREATE TABLE `genome_statistics` (
`value` bigint(11) unsigned NOT NULL DEFAULT '0',
`species_id` int(10) unsigned DEFAULT '1',
`attrib_type_id` int(10) unsigned DEFAULT NULL,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`timestamp` datetime DEFAULT NULL,
PRIMARY KEY (`genome_statistics_id`),
UNIQUE KEY `stats_uniq` (`statistic`,`attrib_type_id`,`species_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......@@ -409,7 +409,7 @@ CREATE TABLE `mapping_session` (
`new_release` varchar(5) COLLATE latin1_bin NOT NULL DEFAULT '',
`old_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`new_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`created` datetime NOT NULL,
`created` datetime DEFAULT NULL,
PRIMARY KEY (`mapping_session_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
......@@ -477,7 +477,7 @@ CREATE TABLE `meta` (
PRIMARY KEY (`meta_id`),
UNIQUE KEY `species_key_value_idx` (`species_id`,`meta_key`,`meta_value`),
KEY `species_value_idx` (`species_id`,`meta_value`)
) ENGINE=MyISAM AUTO_INCREMENT=148 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=152 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......@@ -555,8 +555,8 @@ CREATE TABLE `operon` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `name_idx` (`display_label`),
......@@ -574,8 +574,8 @@ CREATE TABLE `operon_transcript` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_transcript_id`),
KEY `operon_idx` (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -790,8 +790,8 @@ CREATE TABLE `transcript` (
`canonical_translation_id` int(10) unsigned DEFAULT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`transcript_id`),
UNIQUE KEY `canonical_translation_idx` (`canonical_translation_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -837,8 +837,8 @@ CREATE TABLE `translation` (
`end_exon_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`translation_id`),
KEY `transcript_idx` (`transcript_id`),
KEY `stable_id_idx` (`stable_id`,`version`)
......
......@@ -24,4 +24,4 @@
21739 18274 1282 469283 31210077 31225346 1 0 ensembl protein_coding NOVEL \N 1 21739 ENST00000300425 1 2004-12-06 12:00:00 2004-12-06 12:00:00
21740 18275 1282 965899 10060 10405 1 0 ensembl protein_coding NOVEL \N 1 21740 ENST00000355555 1 2004-12-06 12:00:00 2004-12-06 12:00:00
21741 18276 1282 469290 1 150 1 \N ensembl protein_coding NOVEL weird 1 21741 ENST00000111111 1 2014-12-11 14:00:00 2014-12-11 14:00:00
21742 18276 1282 317101 20000 21000 1 \N ensembl protein_coding NOVEL weird 1 21742 ENST00000222222 1 2016-08-15 14:00:00 2016-08-15 17:00:00
\ No newline at end of file
21742 18276 1282 317101 20000 21000 1 \N ensembl protein_coding NOVEL weird 1 21742 ENST00000222222 1 2016-08-15 14:00:00 2016-08-15 17:00:00
1 \N schema_version 86
1 \N schema_version 87
2 1 assembly.default NCBI34
33 1 species.classification Chordata
32 1 species.classification Vertebrata
......@@ -79,3 +79,6 @@
128 \N patch patch_85_86_a.sql|schema_version
129 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
130 \N patch patch_85_86_c.sql|meta_case_insensitive
131 \N patch patch_86_87_a.sql|schema_version
132 \N patch patch_86_87_b.sql|meta_value_NOT_NULL
133 \N patch patch_86_87_c.sql|datetime_default_NULL
......@@ -20,7 +20,7 @@ CREATE TABLE `alt_allele_group` (
CREATE TABLE `analysis` (
`analysis_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created` datetime DEFAULT NULL,
`logic_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
`db` varchar(120) COLLATE latin1_bin DEFAULT NULL,
`db_version` varchar(40) COLLATE latin1_bin DEFAULT NULL,
......@@ -247,8 +247,8 @@ CREATE TABLE `exon` (
`is_constitutive` tinyint(1) NOT NULL DEFAULT '0',
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`exon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `stable_id_idx` (`stable_id`,`version`)
......@@ -301,8 +301,8 @@ CREATE TABLE `gene` (
`canonical_transcript_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`gene_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `xref_id_index` (`display_xref_id`),
......@@ -342,7 +342,7 @@ CREATE TABLE `genome_statistics` (
`value` bigint(11) unsigned NOT NULL DEFAULT '0',
`species_id` int(10) unsigned DEFAULT '1',
`attrib_type_id` int(10) unsigned DEFAULT NULL,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`timestamp` datetime DEFAULT NULL,
PRIMARY KEY (`genome_statistics_id`),
UNIQUE KEY `stats_uniq` (`statistic`,`attrib_type_id`,`species_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......@@ -409,7 +409,7 @@ CREATE TABLE `mapping_session` (
`new_release` varchar(5) COLLATE latin1_bin NOT NULL DEFAULT '',
`old_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`new_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`created` datetime NOT NULL,
`created` datetime DEFAULT NULL,
PRIMARY KEY (`mapping_session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
......@@ -477,7 +477,7 @@ CREATE TABLE `meta` (
PRIMARY KEY (`meta_id`),
UNIQUE KEY `species_key_value_idx` (`species_id`,`meta_key`,`meta_value`),
KEY `species_value_idx` (`species_id`,`meta_value`)
) ENGINE=MyISAM AUTO_INCREMENT=130 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=134 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......@@ -555,8 +555,8 @@ CREATE TABLE `operon` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `name_idx` (`display_label`),
......@@ -574,8 +574,8 @@ CREATE TABLE `operon_transcript` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_transcript_id`),
KEY `operon_idx` (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -790,8 +790,8 @@ CREATE TABLE `transcript` (
`canonical_translation_id` int(10) unsigned DEFAULT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`transcript_id`),
UNIQUE KEY `canonical_translation_idx` (`canonical_translation_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -837,8 +837,8 @@ CREATE TABLE `translation` (
`end_exon_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`translation_id`),
KEY `transcript_idx` (`transcript_id`),
KEY `stable_id_idx` (`stable_id`,`version`)
......
1 \N schema_version 86
1 \N schema_version 87
2014 1 species.classification Haplorrhini
40 1 assembly.default GRCh37
41 1 assembly.date 2009-02
......@@ -84,3 +84,6 @@
2091 \N patch patch_85_86_a.sql|schema_version
2092 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
2093 \N patch patch_85_86_c.sql|meta_case_insensitive
2094 \N patch patch_86_87_a.sql|schema_version
2095 \N patch patch_86_87_b.sql|meta_value_NOT_NULL
2096 \N patch patch_86_87_c.sql|datetime_default_NULL
......@@ -20,7 +20,7 @@ CREATE TABLE `alt_allele_group` (
CREATE TABLE `analysis` (
`analysis_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created` datetime DEFAULT NULL,
`logic_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
`db` varchar(120) COLLATE latin1_bin DEFAULT NULL,
`db_version` varchar(40) COLLATE latin1_bin DEFAULT NULL,
......@@ -247,8 +247,8 @@ CREATE TABLE `exon` (
`is_constitutive` tinyint(1) NOT NULL DEFAULT '0',
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`exon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `stable_id_idx` (`stable_id`,`version`)
......@@ -301,8 +301,8 @@ CREATE TABLE `gene` (
`canonical_transcript_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`gene_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `xref_id_index` (`display_xref_id`),
......@@ -342,7 +342,7 @@ CREATE TABLE `genome_statistics` (
`value` bigint(11) unsigned NOT NULL DEFAULT '0',
`species_id` int(10) unsigned DEFAULT '1',
`attrib_type_id` int(10) unsigned DEFAULT NULL,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`timestamp` datetime DEFAULT NULL,
PRIMARY KEY (`genome_statistics_id`),
UNIQUE KEY `stats_uniq` (`statistic`,`attrib_type_id`,`species_id`)
) ENGINE=MyISAM AUTO_INCREMENT=71 DEFAULT CHARSET=latin1;
......@@ -409,7 +409,7 @@ CREATE TABLE `mapping_session` (
`new_release` varchar(5) COLLATE latin1_bin NOT NULL DEFAULT '',
`old_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`new_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`created` datetime NOT NULL,
`created` datetime DEFAULT NULL,
PRIMARY KEY (`mapping_session_id`)
) ENGINE=MyISAM AUTO_INCREMENT=394 DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
......@@ -477,7 +477,7 @@ CREATE TABLE `meta` (
PRIMARY KEY (`meta_id`),
UNIQUE KEY `species_key_value_idx` (`species_id`,`meta_key`,`meta_value`),
KEY `species_value_idx` (`species_id`,`meta_value`)
) ENGINE=MyISAM AUTO_INCREMENT=2093 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=2097 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......@@ -555,8 +555,8 @@ CREATE TABLE `operon` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `name_idx` (`display_label`),
......@@ -574,8 +574,8 @@ CREATE TABLE `operon_transcript` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_transcript_id`),
KEY `operon_idx` (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -790,8 +790,8 @@ CREATE TABLE `transcript` (
`canonical_translation_id` int(10) unsigned DEFAULT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`transcript_id`),
UNIQUE KEY `canonical_translation_idx` (`canonical_translation_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -837,8 +837,8 @@ CREATE TABLE `translation` (
`end_exon_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`translation_id`),
KEY `transcript_idx` (`transcript_id`),
KEY `stable_id_idx` (`stable_id`,`version`)
......
1 \N schema_version 86
1 \N schema_version 87
2 1 assembly.default MULTIMAP
3 1 species.taxonomy_id 1
4 1 assembly.mapping chromosome:MULTIMAP#contig
......@@ -40,3 +40,6 @@
133 \N patch patch_85_86_a.sql|schema_version
134 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
135 \N patch patch_85_86_c.sql|meta_case_insensitive
136 \N patch patch_86_87_a.sql|schema_version
137 \N patch patch_86_87_b.sql|meta_value_NOT_NULL
138 \N patch patch_86_87_c.sql|datetime_default_NULL
......@@ -20,7 +20,7 @@ CREATE TABLE `alt_allele_group` (
CREATE TABLE `analysis` (
`analysis_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created` datetime DEFAULT NULL,
`logic_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
`db` varchar(120) COLLATE latin1_bin DEFAULT NULL,
`db_version` varchar(40) COLLATE latin1_bin DEFAULT NULL,
......@@ -247,8 +247,8 @@ CREATE TABLE `exon` (
`is_constitutive` tinyint(1) NOT NULL DEFAULT '0',
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`exon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `stable_id_idx` (`stable_id`,`version`)
......@@ -301,8 +301,8 @@ CREATE TABLE `gene` (
`canonical_transcript_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`gene_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `xref_id_index` (`display_xref_id`),
......@@ -342,7 +342,7 @@ CREATE TABLE `genome_statistics` (
`value` bigint(11) unsigned NOT NULL DEFAULT '0',
`species_id` int(10) unsigned DEFAULT '1',
`attrib_type_id` int(10) unsigned DEFAULT NULL,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`timestamp` datetime DEFAULT NULL,
PRIMARY KEY (`genome_statistics_id`),
UNIQUE KEY `stats_uniq` (`statistic`,`attrib_type_id`,`species_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......@@ -409,7 +409,7 @@ CREATE TABLE `mapping_session` (
`new_release` varchar(5) COLLATE latin1_bin NOT NULL DEFAULT '',
`old_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`new_assembly` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT '',
`created` datetime NOT NULL,
`created` datetime DEFAULT NULL,
PRIMARY KEY (`mapping_session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
......@@ -477,7 +477,7 @@ CREATE TABLE `meta` (
PRIMARY KEY (`meta_id`),
UNIQUE KEY `species_key_value_idx` (`species_id`,`meta_key`,`meta_value`),
KEY `species_value_idx` (`species_id`,`meta_value`)
) ENGINE=MyISAM AUTO_INCREMENT=135 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=139 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......@@ -555,8 +555,8 @@ CREATE TABLE `operon` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `name_idx` (`display_label`),
......@@ -574,8 +574,8 @@ CREATE TABLE `operon_transcript` (
`analysis_id` smallint(5) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`operon_transcript_id`),
KEY `operon_idx` (`operon_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -790,8 +790,8 @@ CREATE TABLE `transcript` (
`canonical_translation_id` int(10) unsigned DEFAULT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`transcript_id`),
UNIQUE KEY `canonical_translation_idx` (`canonical_translation_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
......@@ -837,8 +837,8 @@ CREATE TABLE `translation` (
`end_exon_id` int(10) unsigned NOT NULL,
`stable_id` varchar(128) DEFAULT NULL,
`version` smallint(5) unsigned DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
PRIMARY KEY (`translation_id`),
KEY `transcript_idx` (`transcript_id`),
KEY `stable_id_idx` (`stable_id`,`version`)
......
1 \N schema_type core
2 \N schema_version 86
2 \N schema_version 87
3 \N patch patch_65_66_a.sql|schema_version
4 \N patch patch_65_66_b.sql|fix_external_db_id