52 lines
1.4 KiB
SQL
52 lines
1.4 KiB
SQL
--
|
|
-- $Id$
|
|
--
|
|
-- tabel voor de synchronisatie van contactpersonen
|
|
|
|
DEFINE thisfile = 'PCHD#41923'
|
|
DEFINE dbuser = '^PCH'
|
|
|
|
|
|
SET ECHO ON
|
|
SET DEFINE ON
|
|
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
|
|
WHENEVER SQLERROR EXIT;
|
|
SELECT adm.scriptspoolfile('&dbuser', '&thisfile') AS fcltlogfile FROM DUAL;
|
|
WHENEVER SQLERROR CONTINUE;
|
|
SPOOL &fcltlogfile
|
|
SET DEFINE OFF
|
|
|
|
------ payload begin ------
|
|
|
|
CREATE TABLE pchx_imp_contactpersoon
|
|
(
|
|
prs_contactpersoon_key NUMBER(10),
|
|
prs_contactpersoon_naam VARCHAR2(30),
|
|
prs_contactpersoon_tussenv VARCHAR2(15),
|
|
prs_contactpersoon_voorletters VARCHAR2(10),
|
|
prs_contactpersoon_voornaam VARCHAR2(30),
|
|
prs_contactpersoon_aanhef VARCHAR2(30),
|
|
prs_contactpersoon_titel VARCHAR2(10),
|
|
prs_contactpersoon_telefoon_1 VARCHAR2(30),
|
|
prs_contactpersoon_telefoon_2 VARCHAR2(30),
|
|
prs_contactpersoon_fax VARCHAR2(30),
|
|
prs_contactpersoon_email VARCHAR2(50),
|
|
prs_contactpersoon_functie VARCHAR2(60),
|
|
prs_contactpersoon_opmerking VARCHAR2(255),
|
|
prs_bedrijf_key NUMBER(10),
|
|
prs_bedrijf_naam VARCHAR2 (60)
|
|
);
|
|
|
|
------ 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
|
|
|
|
--@@ &custid |