--
-- $Id$
--
-- Customer specific once-script UWVA#88525.
DEFINE thisfile = 'UWVA#88525.SQL'
DEFINE dbuser   = '^UWVA'

SET ECHO ON
SET DEFINE ON
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
COLUMN fcltcusterr NEW_VALUE fcltcusterr NOPRINT;
WHENEVER SQLERROR CONTINUE;
SELECT adm.getscriptspoolfile('&thisfile') AS fcltlogfile FROM DUAL;
SPOOL &fcltlogfile
WHENEVER SQLERROR EXIT;
SELECT adm.checkscriptcust('&dbuser') AS fcltcusterr FROM DUAL;
WHENEVER SQLERROR CONTINUE;
PROMPT &fcltcusterr
SET DEFINE OFF

------ payload begin ------

-- UWVA#88525: Opschonen vervallen IPSOS-views!
--SELECT * FROM fac_export_app WHERE UPPER (fac_export_app_code) = 'IPSOS';
DELETE FROM fac_export_app WHERE UPPER (fac_export_app_code) = 'IPSOS';
DROP VIEW UWVA_V_EXPORT_IPSOS;
DROP VIEW UWVA_V_RAP_IPSOS_MLD;
DROP VIEW UWVA_V_RAP_IPSOS_BES;

------ payload end   ------

SET DEFINE OFF
BEGIN adm.systrackscriptId ('$Id$'); END;
/

COMMIT;
SET ECHO OFF
SPOOL OFF
SET DEFINE ON
PROMPT Logfile of this upgrade is: &fcltlogfile
