
/*------ ATD 435825 ------*/
-- Adicionando coluna AGUARDA_CONFERENCIA na tabela NFENTRACAD
DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'NFENTRACAD' AND Upper(column_name) = 'AGUARDA_CONFERENCIA'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE NFENTRACAD ADD AGUARDA_CONFERENCIA TINYINT '; 
END;
