BLCC#59950 Planned Maintenance Tenants contracten van Definitief terug naar Nieuw
svn path=/Customer/; revision=46208
This commit is contained in:
38
onces/BLCC/BLCC#59950-Status2Nieuw.sql
Normal file
38
onces/BLCC/BLCC#59950-Status2Nieuw.sql
Normal file
@@ -0,0 +1,38 @@
|
||||
--
|
||||
-- $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
|
||||
Reference in New Issue
Block a user