Skip to content

cvtermsynonym unique constraint ignores type_id #149

Description

@dsenalik

As noted in tripal/tripal#2280 the cvtermsynonym table has a unique constraint that only includes cvterm_id and synonym.
"cvtermsynonym_c1" UNIQUE CONSTRAINT, btree (cvterm_id, synonym)
Some ontologies like EDAM may define more than one synonym type for the same synonym name, e.g.

synonym: "Quality" BROAD []
synonym: "Quality" RELATED []

So this ontology cannot be fully represented in chado currently.

Should the unique constraint be updated to include type_id? It would be backwards compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions