
/*------ ATD 426826 ------*/
-- Adicionando coluna VALORCRPREVISTO na tabela DOCFCXACAD
DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'DOCFCXACAD' AND Upper(column_name) = 'VALORCRPREVISTO'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE DOCFCXACAD ADD VALORCRPREVISTO NUMERIC(15,2) '; 
END;
