remove dmp fkey from Entity Doi table script

This commit is contained in:
amentis 2024-03-27 16:03:50 +02:00
parent 62f1946279
commit 839f74868e
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
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$$;