Files
Customer/onces/BLCC/BLCC#59950-Status2Nieuw.sql
Maarten van der Heide 945d8decdd BLCC#59950 Planned Maintenance Tenants contracten van Definitief terug naar Nieuw
svn path=/Customer/; revision=46208
2020-03-12 13:38:52 +00:00

39 lines
959 B
SQL

--
-- $Id$
--
-- Customer specific once-script BLCC#59950.SQL.
DEFINE thisfile = 'BLCC#59950.SQL'
DEFINE dbuser = '^BLCC'
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 ------
-- BLCC#59950: Planned Maintenance Tenants (2221) contracten van Definitief
-- terug naar Nieuw (voor deze ene keer)!
UPDATE cnt_contract
SET cnt_contract_status = 2, -- Nieuw
cnt_contract_verlenging = 2
WHERE ins_discipline_key = 2221
AND cnt_contract_status = 0;
COMMIT;
------ 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