db.migration.v0.15.0.3__agr_curation_api.sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agr_curation_api Show documentation
Show all versions of agr_curation_api Show documentation
This software is for using the curation api as a library
UPDATE diseaseannotation
SET uniqueid = CONCAT(uniqueid, '|true')
WHERE negated = True AND uniqueid LIKE 'FB%';
UPDATE diseaseannotation
SET uniqueid = CONCAT(uniqueid, '|false')
WHERE negated = False AND uniqueid LIKE 'FB%';
UPDATE diseaseannotation
SET uniqueid = CONCAT(uniqueid, '|', vocabularyterm.name)
FROM vocabularyterm
WHERE diseaseannotation.diseasegeneticmodifierrelation_id = vocabularyterm.id AND uniqueid LIKE 'FB%';
UPDATE diseaseannotation
SET uniqueid = CONCAT(uniqueid, '|', diseasegeneticmodifier_curie)
WHERE diseasegeneticmodifier_curie IS NOT NULL AND uniqueid LIKE 'FB%';