BLCC#80202 Rap(-exports)/LHKOTC-code toevoegen (incl. historie)
svn path=/Customer/; revision=62073
This commit is contained in:
62
onces/BLCC/BLCC#80202.sql
Normal file
62
onces/BLCC/BLCC#80202.sql
Normal file
@@ -0,0 +1,62 @@
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
-- Customer specific once-script BLCC#80202.sql.
|
||||
DEFINE thisfile = 'BLCC#80202.sql'
|
||||
DEFINE dbuser = '^BLCC'
|
||||
|
||||
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 ------
|
||||
|
||||
-- BLCC#80202: Uitbreiden tabel met historische ALG-ruimtegegevens.
|
||||
ALTER TABLE BLCC_ALG_FREEZE ADD (LHKOTC_CLASS_CODE VARCHAR2 (40));
|
||||
COMMIT;
|
||||
/*
|
||||
SELECT (SELECT fac_usrdata_code
|
||||
FROM fac_v_aanwezigusrdata
|
||||
WHERE fac_usrtab_key = 241
|
||||
AND UPPER (fac_usrdata_omschr) = UPPER (x.lhkotc_class))
|
||||
FROM BLCC_ALG_FREEZE x
|
||||
WHERE lhkotc_class IS NOT NULL
|
||||
AND EXISTS
|
||||
(SELECT 1
|
||||
FROM fac_v_aanwezigusrdata
|
||||
WHERE fac_usrtab_key = 241
|
||||
AND UPPER (fac_usrdata_omschr) = UPPER (x.lhkotc_class));
|
||||
*/
|
||||
UPDATE BLCC_ALG_FREEZE x
|
||||
SET lhkotc_class_code =
|
||||
(SELECT fac_usrdata_code
|
||||
FROM fac_v_aanwezigusrdata
|
||||
WHERE fac_usrtab_key = 241
|
||||
AND UPPER (fac_usrdata_omschr) = UPPER (x.lhkotc_class))
|
||||
WHERE lhkotc_class IS NOT NULL
|
||||
AND EXISTS
|
||||
(SELECT 1
|
||||
FROM fac_v_aanwezigusrdata
|
||||
WHERE fac_usrtab_key = 241
|
||||
AND UPPER (fac_usrdata_omschr) = UPPER (x.lhkotc_class));
|
||||
|
||||
------ 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