--
-- $Id$
--
-- Korte beschrijving wat het script doet
-- Kenmerkdefinitie aanpassen 2310 is interne bijlage. Niet linken op stdmelding niveau maar op vakgroep.
--
DEFINE thisfile = 'KFST#70143.SQL'
DEFINE dbuser   = '^KFST'

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 mld_kenmerk
   SET MLD_KENMERK_NIVEAU = 'D', mld_stdmelding_key = 281 -- huurdersmutatie
 WHERE mld_kenmerk_key = 2310;

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