INLO#60785

svn path=/Customer/; revision=45345
This commit is contained in:
Ruud Lipper
2020-01-03 08:55:37 +00:00
parent e48efa7ad3
commit 8f37608b16

View File

@@ -0,0 +1,47 @@
--
-- $Id$
--
-- Script containing customer specific sql statements for the INLO database
-- Correctie op Reserveringen. Status FO moet naar defintief gezet worden.
DEFINE thisfile = 'INLO#60785.SQL'
DEFINE dbuser = '^INLO'
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 ------
-- De ruimte_reservering met bo_key 6 (verwerkt) kunnen uiteraard niet gemuteerd worden.
-- Daarom Trigger disablen, Uitvoeren, Trigger enablen
ALTER TRIGGER RES_T_RES_RSV_RUIMTE_B_IU DISABLE ;
UPDATE res_rsv_ruimte
SET res_status_fo_key = 2 -- Status Definitief
WHERE res_rsv_ruimte_verwijder IS NULL
AND res_rsv_ruimte_noshow IS NULL
AND res_status_fo_key = 1
AND res_status_bo_key = 6
AND res_rsv_ruimte_key IN
(16622, 9281, 11543, 11542, 11541, 10101, 11981, 8911, 11601);
ALTER TRIGGER RES_T_RES_RSV_RUIMTE_B_IU ENABLE;
------ 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