Commit 220280d6 authored by Alessandro Vullo's avatar Alessandro Vullo
Browse files

Patching test databases.

parent 31690310
......@@ -6,3 +6,7 @@
6 \N patch patch_84_85_c.sql|drop column moltype from variation_synonym
7 \N patch patch_85_86_d.sql|Making attrib_id auto_increment
8 \N patch patch_85_86_e.sql|drop the table tagged_variation_feature
9 \N patch patch_84_85_d.sql|Making attrib_id auto_increment
10 \N patch patch_84_85_e.sql|drop the table tagged_variation_feature
11 \N patch patch_84_85_f.sql|add phenotype_ontology_accession
12 \N patch patch_84_85_g.sql|allow the column description to store more text in the source table
......@@ -168,7 +168,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=9 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) NOT NULL,
......@@ -235,6 +235,13 @@ CREATE TABLE `phenotype_feature_attrib` (
KEY `type_value_idx` (`attrib_type_id`,`value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `phenotype_ontology_accession` (
`phenotype_id` int(11) unsigned NOT NULL,
`accession` varchar(255) NOT NULL,
`linked_by_attrib` set('437','438','439','440','441','442') DEFAULT NULL,
PRIMARY KEY (`phenotype_id`,`accession`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `population` (
`population_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
......@@ -385,7 +392,7 @@ CREATE TABLE `source` (
`source_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(24) NOT NULL,
`version` int(11) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`description` varchar(400) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`type` enum('chip','lsdb') DEFAULT NULL,
`somatic_status` enum('germline','somatic','mixed') DEFAULT 'germline',
......
......@@ -33,3 +33,7 @@
39 \N patch patch_84_85_c.sql|drop column moltype from variation_synonym
40 \N patch patch_85_86_d.sql|Making attrib_id auto_increment
41 \N patch patch_85_86_e.sql|drop the table tagged_variation_feature
42 \N patch patch_84_85_d.sql|Making attrib_id auto_increment
43 \N patch patch_84_85_e.sql|drop the table tagged_variation_feature
44 \N patch patch_84_85_f.sql|add phenotype_ontology_accession
45 \N patch patch_84_85_g.sql|allow the column description to store more text in the source table
......@@ -168,7 +168,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=42 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=46 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) NOT NULL,
......@@ -235,6 +235,13 @@ CREATE TABLE `phenotype_feature_attrib` (
KEY `type_value_idx` (`attrib_type_id`,`value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `phenotype_ontology_accession` (
`phenotype_id` int(11) unsigned NOT NULL,
`accession` varchar(255) NOT NULL,
`linked_by_attrib` set('437','438','439','440','441','442') DEFAULT NULL,
PRIMARY KEY (`phenotype_id`,`accession`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `population` (
`population_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
......@@ -387,7 +394,7 @@ CREATE TABLE `source` (
`source_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(24) NOT NULL,
`version` int(11) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`description` varchar(400) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`type` enum('chip','lsdb') DEFAULT NULL,
`somatic_status` enum('germline','somatic','mixed') DEFAULT 'germline',
......
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