ALTER TABLE par_cliente ADD COLUMN IF NOT EXISTS porte_xml_atualiza_preco_venda character varying(1); UPDATE par_cliente SET porte_xml_atualiza_preco_venda = 'S' WHERE porte_xml_atualiza_preco_venda IS NULL; ALTER TABLE par_cliente ALTER COLUMN porte_xml_atualiza_preco_venda SET NOT NULL;