SET session_replication_role = replica;

ALTER TABLE public.ModulAplikasi_S
DROP COLUMN moduliconimage,
DROP COLUMN modulnourut;

ALTER TABLE public.ModulAplikasi_S
ADD COLUMN IconImage character varying(255) NULL, 
ADD COLUMN NoUrut smallint NULL,
ADD COLUMN KdModulAplikasiHead integer NULL; 

ALTER TABLE public.ObjekModulAplikasi_S
DROP COLUMN objectjenisobjekmodulfk,
DROP COLUMN objectmodulaplikasifk,
DROP COLUMN objekmodulaplikasiheadfk,
DROP COLUMN objekmodulnourut,
DROP COLUMN alamaturlform;

ALTER TABLE public.ObjekModulAplikasi_S
ADD COLUMN AlamatUrlForm character varying(255) DEFAULT '',
ADD COLUMN NoUrut smallint NULL, 
ADD COLUMN KdObjekModulAplikasiHead integer NULL;

ALTER TABLE public.HistoryLoginUser_S ALTER COLUMN detailDataCrud TYPE text;

SET session_replication_role = DEFAULT;


-- Harap eksekusi di masing2 komputer, isi datanya, koordinasi dengan pak rico, terima kasih
-- Referensi 192.168.12.4