argos/dmp-db-scema/updates/00.01.061_Remove_DMP_Fkey_f...

11 lines
380 B
SQL

DO $$DECLARE
this_version CONSTANT varchar := '00.01.061';
BEGIN
PERFORM * FROM "DBVersion" WHERE version = this_version;
IF FOUND THEN RETURN; END IF;
ALTER TABLE public."EntityDoi" DROP CONSTRAINT fk_doi_entityid;
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.061', '2024-03-27 12:00:00.000000+02', now(), 'Remove DMP fkey from EntityDoi Table.');
END$$;