
/*------ ATD 201903 ------*/
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) = 'RESTRITO';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE 'alter table tablocacad add Restrito numeric(1) default 0 not null';
END;
/

