ALTER TABLE par_faturamento ADD COLUMN decimais_qtd_nota integer; UPDATE par_faturamento SET decimais_qtd_nota = 4 WHERE decimais_qtd_nota IS NULL; ALTER TABLE par_faturamento ALTER COLUMN decimais_qtd_nota SET NOT NULL;