Commit 8113a93d authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-388: added alt_id table

parent f105850c
-- Adding alt_id table, contains alternative ids for a given term --
CREATE TABLE alt_id (
alt_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
term_id INT UNSIGNED NOT NULL,
accession VARCHAR(64) NOT NULL,
PRIMARY KEY (alt_id),
UNIQUE INDEX term_alt_idx (term_id, alt_id),
INDEX accession_idx (accession(50))
);
...@@ -59,6 +59,16 @@ CREATE TABLE synonym ( ...@@ -59,6 +59,16 @@ CREATE TABLE synonym (
INDEX name_idx (name(50)) INDEX name_idx (name(50))
); );
CREATE TABLE alt_id (
alt_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
term_id INT UNSIGNED NOT NULL,
accession VARCHAR(64) NOT NULL,
PRIMARY KEY (alt_id),
UNIQUE INDEX term_alt_idx (term_id, alt_id),
INDEX accession_idx (accession(50))
);
CREATE TABLE relation_type ( CREATE TABLE relation_type (
relation_type_id INT UNSIGNED NOT NULL AUTO_INCREMENT, relation_type_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(64) NOT NULL, name VARCHAR(64) NOT NULL,
......
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