VBGO#83925 -- Implementatie SCIM koppeling voor VBGO
svn path=/Customer/; revision=66056
This commit is contained in:
40
onces/VBGO/VBGO#83925.sql
Normal file
40
onces/VBGO/VBGO#83925.sql
Normal file
@@ -0,0 +1,40 @@
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
-- Script om het externid bij de persoon te zetten. Het externeid wordt gebruikt in de SCIM koppeling en zo kunnen we bestaande mensen
|
||||
-- synchroniseren.
|
||||
--
|
||||
DEFINE thisfile = 'VBGO#75845.SQL'
|
||||
DEFINE dbuser = '^VBGO'
|
||||
|
||||
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 prs_perslid
|
||||
SET prs_perslid_externid = prs_perslid_email
|
||||
WHERE prs_perslid_email IS NOT NULL
|
||||
AND prs_perslid_verwijder IS NULL;
|
||||
|
||||
------ 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
|
||||
Reference in New Issue
Block a user