ALTER TABLE public.vnd_aux_orcamento_controle ADD COLUMN nr_caixa integer; UPDATE vnd_aux_orcamento_controle SET nr_caixa = 0 WHERE nr_caixa IS NULL; ALTER TABLE public.vnd_aux_orcamento_controle ALTER COLUMN nr_caixa SET NOT NULL; ALTER TABLE public.vnd_aux_orcamento_controle ADD COLUMN nr_abertura integer; UPDATE vnd_aux_orcamento_controle SET nr_abertura = 0 WHERE nr_abertura IS NULL; ALTER TABLE public.vnd_aux_orcamento_controle ALTER COLUMN nr_abertura SET NOT NULL; ALTER TABLE public.vnd_aux_orcamento_controle ADD COLUMN terminal_caixa_sn character varying(1); UPDATE vnd_aux_orcamento_controle SET terminal_caixa_sn = 'N' WHERE terminal_caixa_sn IS NULL; ALTER TABLE public.vnd_aux_orcamento_controle ALTER COLUMN terminal_caixa_sn SET NOT NULL;