--
-- $Id$
--
-- 59495: omhangen bierobjecten
-- Objectsoorten DA-HEB (2321) en DA-HEI (2181) moeten van 
-- objectgroep Drankapparatuur (1101) naar objectgroep Bierapparatuur (1281)
--
DEFINE thisfile = 'ARAI#59495.SQL'
DEFINE dbuser   = '^ARAI'

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 ------


UPDATE ins_srtdeel d
   SET ins_srtgroep_key = 1281
 WHERE d.ins_srtdeel_key IN (2321, 2181);
 

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

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

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