
/*------ ATD 356962 ------*/
DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'COMPLEMENTOPRODUTO' AND Upper(column_name) = 'UTRIB'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE COMPLEMENTOPRODUTO ADD UTRIB CHAR(6) '; 
END;
/
DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'COMPLEMENTOPRODUTO' AND Upper(column_name) = 'FACONV_UTRIB'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE COMPLEMENTOPRODUTO ADD FACONV_UTRIB NUMBER(15,8) '; 
END;
/
DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'CODIGONCM' AND Upper(column_name) = 'FACONV_UTRIB'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE CODIGONCM ADD FACONV_UTRIB NUMBER(15,8) '; 
END;
/