--
-- $Id$
--
-- Voor het herstellen van de verwijderde inspectie records

DEFINE thisfile = 'WOHW#87270.sql'
DEFINE dbuser   = '^WOHW'

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

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

UPDATE ins_deelsrtcontrole
   SET ins_deelsrtcontrole_datum_org = ins_deelsrtcontrole_datum
 WHERE ins_deelsrtcontrole_datum_org IS NULL
   AND ins_deelsrtcontrole_status = 6;

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

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

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