diff --git a/misc-scripts/xref_mapping/sql/table.sql b/misc-scripts/xref_mapping/sql/table.sql index 8d2c0433e877c682c0569cf3b4231946f7e17b11..8a6212c03ce2eaa636ced4ddbaee95427ce69498 100755 --- a/misc-scripts/xref_mapping/sql/table.sql +++ b/misc-scripts/xref_mapping/sql/table.sql @@ -149,6 +149,7 @@ CREATE TABLE pairs ( -- on the knownGenes table from UCSC. CREATE TABLE coordinate_xref ( + coord_xref_id INT UNSIGNED NOT NULL AUTO_INCREMENT, source_id INT UNSIGNED NOT NULL, species_id INT UNSIGNED NOT NULL, accession VARCHAR(255) NOT NULL, @@ -161,7 +162,7 @@ CREATE TABLE coordinate_xref ( exonStarts TEXT NOT NULL, exonEnds TEXT NOT NULL, - -- Me ain't sure 'bout these 'uns + UNIQUE KEY coord_xref_idx(coord_xref_id), INDEX start_pos_idx(species_id, chromosome, strand, txStart), INDEX end_pos_idx(species_id, chromosome, strand, txEnd) );