Commit 783a9e52 authored by James Allen's avatar James Allen
Browse files

Adding schema change to test database definitions

parent d9ebb78f
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue May 10 12:28:29 2016
-- Created on Fri Jun 24 15:49:02 2016
--
BEGIN TRANSACTION;
......@@ -258,6 +258,17 @@ CREATE TABLE dna_align_feature (
external_data text
);
--
-- Table: dna_align_feature_attrib
--
CREATE TABLE dna_align_feature_attrib (
dna_align_feature_id integer NOT NULL,
attrib_type_id smallint NOT NULL,
value text NOT NULL
);
CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
--
-- Table: exon
--
......
......@@ -98,3 +98,4 @@
98 \N patch patch_84_85_a.sql|schema_version
99 \N patch patch_84_85_b.sql|remove_duplicated_key
100 \N patch patch_85_86_a.sql|schema_version
101 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
......@@ -225,6 +225,16 @@ CREATE TABLE `dna_align_feature` (
KEY `external_db_idx` (`external_db_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin MAX_ROWS=100000000 AVG_ROW_LENGTH=80;
CREATE TABLE `dna_align_feature_attrib` (
`dna_align_feature_id` int(10) unsigned NOT NULL,
`attrib_type_id` smallint(5) unsigned NOT NULL,
`value` text NOT NULL,
UNIQUE KEY `dna_align_feature_attribx` (`dna_align_feature_id`,`attrib_type_id`,`value`(500)),
KEY `dna_align_feature_idx` (`dna_align_feature_id`),
KEY `type_val_idx` (`attrib_type_id`,`value`(40)),
KEY `val_only_idx` (`value`(40))
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `exon` (
`exon_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`seq_region_id` int(10) unsigned NOT NULL,
......@@ -467,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=101 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=102 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue May 10 12:28:58 2016
-- Created on Fri Jun 24 15:49:07 2016
--
BEGIN TRANSACTION;
......@@ -258,6 +258,17 @@ CREATE TABLE dna_align_feature (
external_data text
);
--
-- Table: dna_align_feature_attrib
--
CREATE TABLE dna_align_feature_attrib (
dna_align_feature_id integer NOT NULL,
attrib_type_id smallint NOT NULL,
value text NOT NULL
);
CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
--
-- Table: exon
--
......
......@@ -77,3 +77,4 @@
137 \N patch patch_84_85_a.sql|schema_version
138 \N patch patch_84_85_b.sql|remove_duplicated_key
146 \N patch patch_85_86_a.sql|schema_version
147 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
......@@ -225,6 +225,16 @@ CREATE TABLE `dna_align_feature` (
KEY `external_db_idx` (`external_db_id`)
) ENGINE=MyISAM AUTO_INCREMENT=29797194 DEFAULT CHARSET=latin1 COLLATE=latin1_bin MAX_ROWS=100000000 AVG_ROW_LENGTH=80;
CREATE TABLE `dna_align_feature_attrib` (
`dna_align_feature_id` int(10) unsigned NOT NULL,
`attrib_type_id` smallint(5) unsigned NOT NULL,
`value` text NOT NULL,
UNIQUE KEY `dna_align_feature_attribx` (`dna_align_feature_id`,`attrib_type_id`,`value`(500)),
KEY `dna_align_feature_idx` (`dna_align_feature_id`),
KEY `type_val_idx` (`attrib_type_id`,`value`(40)),
KEY `val_only_idx` (`value`(40))
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `exon` (
`exon_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`seq_region_id` int(10) unsigned NOT NULL,
......@@ -467,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=147 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=148 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......
--
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue May 10 12:29:23 2016
-- Created on Fri Jun 24 15:49:12 2016
--
BEGIN TRANSACTION;
......@@ -258,6 +258,17 @@ CREATE TABLE dna_align_feature (
external_data text
);
--
-- Table: dna_align_feature_attrib
--
CREATE TABLE dna_align_feature_attrib (
dna_align_feature_id integer NOT NULL,
attrib_type_id smallint NOT NULL,
value text NOT NULL
);
CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
--
-- Table: exon
--
......
......@@ -77,3 +77,4 @@
126 \N patch patch_84_85_a.sql|schema_version
127 \N patch patch_84_85_b.sql|remove_duplicated_key
128 \N patch patch_85_86_a.sql|schema_version
129 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
......@@ -225,6 +225,16 @@ CREATE TABLE `dna_align_feature` (
KEY `external_db_idx` (`external_db_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin MAX_ROWS=100000000 AVG_ROW_LENGTH=80;
CREATE TABLE `dna_align_feature_attrib` (
`dna_align_feature_id` int(10) unsigned NOT NULL,
`attrib_type_id` smallint(5) unsigned NOT NULL,
`value` text NOT NULL,
UNIQUE KEY `dna_align_feature_attribx` (`dna_align_feature_id`,`attrib_type_id`,`value`(500)),
KEY `dna_align_feature_idx` (`dna_align_feature_id`),
KEY `type_val_idx` (`attrib_type_id`,`value`(40)),
KEY `val_only_idx` (`value`(40))
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `exon` (
`exon_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`seq_region_id` int(10) unsigned NOT NULL,
......@@ -467,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=129 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=130 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......
......@@ -258,6 +258,17 @@ CREATE TABLE dna_align_feature (
external_data text
);
--
-- Table: dna_align_feature_attrib
--
CREATE TABLE dna_align_feature_attrib (
dna_align_feature_id integer NOT NULL,
attrib_type_id smallint NOT NULL,
value text NOT NULL
);
CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
--
-- Table: exon
--
......
......@@ -82,3 +82,4 @@
2089 \N patch patch_84_85_a.sql|schema_version
2090 \N patch patch_84_85_b.sql|remove_duplicated_key
2091 \N patch patch_85_86_a.sql|schema_version
2092 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
......@@ -225,6 +225,16 @@ CREATE TABLE `dna_align_feature` (
KEY `external_db_idx` (`external_db_id`)
) ENGINE=MyISAM AUTO_INCREMENT=29387404 DEFAULT CHARSET=latin1 COLLATE=latin1_bin MAX_ROWS=100000000 AVG_ROW_LENGTH=80;
CREATE TABLE `dna_align_feature_attrib` (
`dna_align_feature_id` int(10) unsigned NOT NULL,
`attrib_type_id` smallint(5) unsigned NOT NULL,
`value` text NOT NULL,
UNIQUE KEY `dna_align_feature_attribx` (`dna_align_feature_id`,`attrib_type_id`,`value`(500)),
KEY `dna_align_feature_idx` (`dna_align_feature_id`),
KEY `type_val_idx` (`attrib_type_id`,`value`(40)),
KEY `val_only_idx` (`value`(40))
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `exon` (
`exon_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`seq_region_id` int(10) unsigned NOT NULL,
......@@ -467,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=2092 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=2093 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......
......@@ -38,3 +38,4 @@
131 \N patch patch_84_85_a.sql|schema_version
132 \N patch patch_84_85_b.sql|remove_duplicated_key
133 \N patch patch_85_86_a.sql|schema_version
134 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
......@@ -225,6 +225,16 @@ CREATE TABLE `dna_align_feature` (
KEY `external_db_idx` (`external_db_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin MAX_ROWS=100000000 AVG_ROW_LENGTH=80;
CREATE TABLE `dna_align_feature_attrib` (
`dna_align_feature_id` int(10) unsigned NOT NULL,
`attrib_type_id` smallint(5) unsigned NOT NULL,
`value` text NOT NULL,
UNIQUE KEY `dna_align_feature_attribx` (`dna_align_feature_id`,`attrib_type_id`,`value`(500)),
KEY `dna_align_feature_idx` (`dna_align_feature_id`),
KEY `type_val_idx` (`attrib_type_id`,`value`(40)),
KEY `val_only_idx` (`value`(40))
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `exon` (
`exon_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`seq_region_id` int(10) unsigned NOT NULL,
......@@ -467,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=134 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=135 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......
......@@ -155,3 +155,4 @@
1667 \N patch patch_84_85_a.sql|schema_version
1668 \N patch patch_84_85_b.sql|remove_duplicated_key
1669 \N patch patch_85_86_a.sql|schema_version
1670 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
......@@ -225,6 +225,16 @@ CREATE TABLE `dna_align_feature` (
KEY `external_db_idx` (`external_db_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin MAX_ROWS=100000000 AVG_ROW_LENGTH=80;
CREATE TABLE `dna_align_feature_attrib` (
`dna_align_feature_id` int(10) unsigned NOT NULL,
`attrib_type_id` smallint(5) unsigned NOT NULL,
`value` text NOT NULL,
UNIQUE KEY `dna_align_feature_attribx` (`dna_align_feature_id`,`attrib_type_id`,`value`(500)),
KEY `dna_align_feature_idx` (`dna_align_feature_id`),
KEY `type_val_idx` (`attrib_type_id`,`value`(40)),
KEY `val_only_idx` (`value`(40))
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `exon` (
`exon_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`seq_region_id` int(10) unsigned NOT NULL,
......@@ -467,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=1670 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=1671 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......
......@@ -131,3 +131,4 @@
211 \N patch patch_84_85_a.sql|schema_version
212 \N patch patch_84_85_b.sql|remove_duplicated_key
213 \N patch patch_85_86_a.sql|schema_version
214 \N patch patch_85_86_b.sql|add dna_align_feature_attrib table
......@@ -225,6 +225,16 @@ CREATE TABLE `dna_align_feature` (
KEY `external_db_idx` (`external_db_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin MAX_ROWS=100000000 AVG_ROW_LENGTH=80;
CREATE TABLE `dna_align_feature_attrib` (
`dna_align_feature_id` int(10) unsigned NOT NULL,
`attrib_type_id` smallint(5) unsigned NOT NULL,
`value` text NOT NULL,
UNIQUE KEY `dna_align_feature_attribx` (`dna_align_feature_id`,`attrib_type_id`,`value`(500)),
KEY `dna_align_feature_idx` (`dna_align_feature_id`),
KEY `type_val_idx` (`attrib_type_id`,`value`(40)),
KEY `val_only_idx` (`value`(40))
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `exon` (
`exon_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`seq_region_id` int(10) unsigned NOT NULL,
......@@ -467,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=214 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=215 DEFAULT CHARSET=latin1;
CREATE TABLE `meta_coord` (
`table_name` varchar(40) COLLATE latin1_bin NOT NULL DEFAULT '',
......
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