
/*------ ATD 473565 ------*/
-- Adicionando coluna RUSUARIO na tabela MU_EFD_ARQUIVO
DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'MU_EFD_ARQUIVO' AND Upper(column_name) = 'RUSUARIO'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE MU_EFD_ARQUIVO ADD RUSUARIO INT '; 
END;