argos/dmp-db-scema/updates/00.01.037_rename_user_setti...

12 lines
392 B
MySQL
Raw Normal View History

2023-12-06 13:23:21 +01:00
DO $$DECLARE
this_version CONSTANT varchar := '00.01.037';
BEGIN
PERFORM * FROM "DBVersion" WHERE version = this_version;
IF FOUND THEN RETURN; END IF;
ALTER TABLE public.usersettings
RENAME TO "UserSettings";
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.037', '2023-12-06 12:00:00.000000+02', now(), 'Rename usersettings Table to UserSettings.');
END$$;