
/*------ ATD 342460 ------*/
DECLARE v_count NUMBER:=0;

BEGIN

SELECT Count(1) INTO v_count FROM USER_TAB_COLUMNS WHERE UPPER(table_name) = 'PEDICLICOMPLEMENTO' AND Upper(COLUMN_NAME) = 'NUMPEDECOMMERCE' AND DATA_LENGTH < 100;

IF v_count > 0 THEN

EXECUTE IMMEDIATE 'ALTER TABLE PEDICLICOMPLEMENTO MODIFY NUMPEDECOMMERCE VARCHAR2(100)';

END IF;

SELECT Count(1) INTO v_count FROM USER_TAB_COLUMNS WHERE UPPER(table_name) = 'PEDIDO_ECOMMERCE' AND Upper(COLUMN_NAME) = 'NUMPEDECOMMERCE' AND DATA_LENGTH < 100;

IF v_count > 0 THEN

EXECUTE IMMEDIATE 'ALTER TABLE PEDIDO_ECOMMERCE MODIFY NUMPEDECOMMERCE VARCHAR2(100)';

END IF;

END;