12 lines
392 B
SQL
12 lines
392 B
SQL
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$$; |