
/*------ ATD 323832 ------*/
DECLARE v_count NUMBER:=0;
BEGIN
SELECT Count(1) INTO v_count FROM USER_TAB_COLUMNS WHERE UPPER(table_name) = 'DADOSNOTANFE'  and UPPER(column_name) = 'INFADFISCO' AND data_length < 2000;

IF v_count = 0 THEN

EXECUTE IMMEDIATE 'ALTER TABLE DADOSNOTANFE MODIFY INFADFISCO VARCHAR2(2000)';

END IF;
                
END;