-- $Id$
--
-- Toevoegen importtabel voor MJOB.

DEFINE thisfile = 'SZDB#75904.SQL'
DEFINE dbuser   = '^SZDB'

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

CREATE TABLE szdb_imp_mjob
(
    alg_gebouw_code                   VARCHAR2 (12),
    ins_deel_externnr                 VARCHAR2 (256),
    ins_deel_omschrijving             VARCHAR2 (60),
    ins_srtcontrole_omschrijving      VARCHAR2 (60),
    ins_srtcontrole_level             NUMBER (3),
    ins_srtcontroledl_xcp_materia     NUMBER (9, 2),
    ins_srtcontroledl_xcp_aantal      NUMBER (8, 2),
    ins_srtcontroledl_xcp_startdat    DATE,
    ins_srtcontroledl_xcp_periode     NUMBER (6, 2),
    ins_srtcontroledl_xcp_perc        NUMBER (3)
);


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