ALTER TABLE log_reajuste_margem_venda_item ADD COLUMN ant_preco_reposicao numeric(18,6); UPDATE log_reajuste_margem_venda_item SET ant_preco_reposicao = 0; ALTER TABLE log_reajuste_margem_venda_item ALTER COLUMN ant_preco_reposicao SET NOT NULL; ALTER TABLE log_reajuste_margem_venda_item ADD COLUMN atu_preco_reposicao numeric(18,6); UPDATE log_reajuste_margem_venda_item SET atu_preco_reposicao = 0; ALTER TABLE log_reajuste_margem_venda_item ALTER COLUMN atu_preco_reposicao SET NOT NULL;