Commit ef4b13f7 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Replace indexes on term table:

OUT:
  INDEX ontology_idx (ontology_id),
  UNIQUE INDEX acc_ontology_idx (accession, ontology_id)

IN:
  UNIQUE INDEX accession_idx (accession),
  UNIQUE INDEX ontology_acc_idx (ontology_id, accession)

(i.e. require ontology term accessions to be unique across all
ontologies)
parent c0737dad
......@@ -41,8 +41,8 @@ CREATE TABLE term (
definition TEXT,
PRIMARY KEY (term_id),
INDEX ontology_idx (ontology_id),
UNIQUE INDEX acc_ontology_idx (accession, ontology_id)
UNIQUE INDEX accession_idx (accession),
UNIQUE INDEX ontology_acc_idx (ontology_id, accession)
);
CREATE TABLE relation_type (
......
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