CONN#58391 CONN#58391 -- Verwijderen bestellingen
svn path=/Customer/; revision=43345
This commit is contained in:
40
onces/CONN/CONN#58391_1.sql
Normal file
40
onces/CONN/CONN#58391_1.sql
Normal file
@@ -0,0 +1,40 @@
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
-- Verwijdere bestelmodule gerelateerde data (tracking)
|
||||
|
||||
DEFINE thisfile = 'CONN#58391_1.SQL'
|
||||
DEFINE dbuser = '^CONN'
|
||||
|
||||
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;
|
||||
SET DEFINE OFF
|
||||
|
||||
------ payload begin ------
|
||||
|
||||
DELETE fac_tracking t
|
||||
WHERE fac_srtnotificatie_key IN
|
||||
(SELECT fac_srtnotificatie_key
|
||||
FROM fac_srtnotificatie
|
||||
WHERE fac_srtnotificatie_xmlnode IN ('bestelling', 'bestelopdr'));
|
||||
|
||||
|
||||
------ 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