diff --git a/dmp-db-scema/updates/00.01.070_Update_DescriptionTemplate_code_column.sql b/dmp-db-scema/updates/00.01.070_Update_DescriptionTemplate_code_column.sql new file mode 100644 index 000000000..4bbfa7a5b --- /dev/null +++ b/dmp-db-scema/updates/00.01.070_Update_DescriptionTemplate_code_column.sql @@ -0,0 +1,11 @@ +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$$; \ No newline at end of file