argos/dmp-db-scema/updates/00.01.070_Update_Descriptio...

11 lines
380 B
SQL

DO $$DECLARE
this_version CONSTANT varchar := '00.01.070';
BEGIN
PERFORM * FROM "DBVersion" WHERE version = this_version;
IF FOUND THEN RETURN; END IF;
UPDATE public."DescriptionTemplate" SET code = group_id;
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.070', '2024-07-29 12:00:00.000000+02', now(), 'Update DescriptionTemplate code column.');
END$$;