
/*------ ATD 342326 ------*/
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) = 'MANTERVENCIMENTOPARCELAS';

IF v_count = 0 THEN

EXECUTE IMMEDIATE 'ALTER TABLE PEDICLICOMPLEMENTO ADD ManterVencimentoParcelas NUMERIC(1)';

END IF;

END;