argos/dmp-db-scema/updates/00.00.012.Delete_doi_from_d...

11 lines
352 B
MySQL
Raw Permalink Normal View History

2022-11-02 08:41:40 +01:00
DO $$DECLARE
this_version CONSTANT varchar := '00.00.012';
BEGIN
PERFORM * FROM "DBVersion" WHERE version = this_version;
IF FOUND THEN RETURN; END IF;
ALTER TABLE public."DMP" DROP COLUMN "DOI";
2022-11-02 08:41:40 +01:00
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.012', '2022-10-27 10:50:00.000000+02', now(), 'Delete doi column from dmp table');
END$$;