SQL scripts for updating "Reference" on Funder, Grant and Project to now use the "dmp:" prefix and their unique id as part of it.

This commit is contained in:
gkolokythas 2020-01-13 12:17:06 +02:00
parent 009bd68f71
commit bf5526103a
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
UPDATE "Funder"
SET "Reference" = CONCAT('dmp:', "ID")
WHERE "Reference" LIKE 'dmp:%';
UPDATE "Grant"
SET "Reference" = CONCAT('dmp:', "ID")
WHERE "Reference" LIKE 'dmp:%';
UPDATE "Project"
SET "Reference" = CONCAT('dmp:', "ID")
WHERE "Reference" LIKE 'dmp:%';