Skip to content
Snippets Groups Projects
Commit a37a68f5 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Add column 'coord_xref_id' to the 'coordinate_xref' table as a unique key.

parent 47ba07b6
No related branches found
No related tags found
No related merge requests found
......@@ -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)
);
......
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