
/*------ ATD 447272 ------*/
DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'TABLOCACAD' AND Upper(column_name) = 'ImpressoraOS'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE TABLOCACAD ADD ImpressoraOS VARCHAR(254) '; 
END;

DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'TABLOCACAD' AND Upper(column_name) = 'PrioridadeImpressao'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE TABLOCACAD ADD PrioridadeImpressao INTEGER'; 
END;
