DO $$ 
    BEGIN
          IF EXISTS (SELECT "Id" FROM public."Versions" WHERE "Build">=2080) THEN
		RETURN;
          END IF;
        BEGIN

 		INSERT INTO public."MessageSettings"("Key",  "Value", "Lang") VALUES ('Mail|ModuleUrlData','{"Icon":"/source/modules/icon-mail.svg", "Culture":{"ru":"Почта","en":"Mail" }}','')
		ON CONFLICT ("Key") DO UPDATE SET "Value"= EXCLUDED."Value","Lang"= EXCLUDED."Lang";

		INSERT INTO public."MessageSettings"("Key",  "Value", "Lang") VALUES ('Admin|ModuleUrlData','{"Icon":"/source/modules/icon-admin.svg", "Culture":{"ru":"Админка","en":"Admin" }}','')
		ON CONFLICT ("Key") DO UPDATE SET "Value"= EXCLUDED."Value","Lang"= EXCLUDED."Lang";

		INSERT INTO public."MessageSettings"("Key",  "Value", "Lang") VALUES ('Calendar|ModuleUrlData','{"Icon":"/source/modules/icon-calendar.svg", "Culture":{"ru":"Календарь","en":"Calendar" }}','')
		ON CONFLICT ("Key") DO UPDATE SET "Value"= EXCLUDED."Value","Lang"= EXCLUDED."Lang";

		INSERT INTO public."MessageSettings"("Key",  "Value", "Lang") VALUES ('Draw|ModuleUrlData','{"Icon":"/source/modules/icon-draw.svg", "Culture":{"ru":"Графика","en":"Draw" }}','')
		ON CONFLICT ("Key") DO UPDATE SET "Value"= EXCLUDED."Value","Lang"= EXCLUDED."Lang";

		INSERT INTO public."MessageSettings"("Key",  "Value", "Lang") VALUES ('Payments|ModuleUrlData','{"Icon":"/source/modules/icon-payments.svg", "Culture":{"ru":"Платежи","en":"Payments" }}','')
		ON CONFLICT ("Key") DO UPDATE SET "Value"= EXCLUDED."Value","Lang"= EXCLUDED."Lang";

		INSERT INTO public."MessageSettings"("Key",  "Value", "Lang") VALUES ('Contacts|ModuleUrlData','{"Icon":"/source/modules/icon-contacts.svg", "Culture":{"ru":"Контакты","en":"Contacts" }}','')
		ON CONFLICT ("Key") DO UPDATE SET "Value"= EXCLUDED."Value","Lang"= EXCLUDED."Lang";

		INSERT INTO public."MessageSettings"("Key",  "Value", "Lang") VALUES ('Disk|ModuleUrlData','{"Icon":"/source/modules/icon-disk.svg", "Culture":{"ru":"Диск","en":"Disk" }}','')
		ON CONFLICT ("Key") DO UPDATE SET "Value"= EXCLUDED."Value","Lang"= EXCLUDED."Lang";


        EXCEPTION
            WHEN OTHERS THEN RAISE NOTICE 'ALTER table <MessageSettings> error.';
        END;
    END;
$$



