dbUpgrade4_0023-to-4_0024_db2.sql 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. -- Licensed Materials - Property of IBM
  2. --
  3. -- BI and PM: CM
  4. --
  5. -- (C) Copyright IBM Corp. 2008, 2009
  6. --
  7. -- US Government Users Restricted Rights - Use, duplication or disclosure
  8. -- restricted by GSA ADP Schedule Contract with IBM Corp.
  9. -- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. -- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. create table CMOBJPROPS60 (
  12. CMID integer not null,
  13. CONTEXT clob(64K),
  14. CONTEXTCOUNT integer,
  15. LASTPAGE varchar(512),
  16. constraint PK_CMOBJPROPS60 primary key (CMID)
  17. )
  18. create table CMOBJPROPS61 (
  19. CMID integer not null,
  20. BURSTKEY varchar (3874),
  21. BURSTID clob(64K),
  22. constraint PK_CMOBJPROPS61 primary key (CMID)
  23. )
  24. alter table CMOBJPROPS28 add SPEC clob(1G)
  25. alter table CMOBJPROPS20 drop constraint PK_CMOBJPROPS20
  26. rename CMOBJPROPS20 to CMOBJPROPS20_OLD
  27. create table CMOBJPROPS20 (
  28. CMID integer not null,
  29. EXECLOCALEID smallint,
  30. EXECFORMAT smallint,
  31. EXECPAGEORIENT smallint,
  32. EXECPROMPT decimal(1,0) default 1 not null,
  33. DEFPORTACT smallint,
  34. ALLOWSUBSCRIBE decimal(1,0),
  35. constraint PK_CMOBJPROPS20 primary key (CMID)
  36. )
  37. insert into CMOBJPROPS20(CMID,EXECLOCALEID,EXECFORMAT,EXECPAGEORIENT,EXECPROMPT,DEFPORTACT) select CMID,EXECLOCALEID,EXECFORMAT,EXECPAGEORIENT,EXECPROMPT,DEFPORTACT from CMOBJPROPS20_old
  38. drop table CMOBJPROPS20_OLD
  39. UPDATE CMOBJPROPS20 set ALLOWSUBSCRIBE=0 WHERE CMID IN (SELECT CMID FROM CMOBJECTS WHERE CLASSID IN (10,19,37,80,139))
  40. insert into CMOBJPROPS60(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID=179
  41. insert into CMOBJPROPS61(CMID, BURSTKEY) SELECT CMID, varchar(BURSTKEY, 3874) FROM CMOBJPROPS6A WHERE CMID in (SELECT CMID FROM CMOBJECTS WHERE CLASSID in (27,179))
  42. drop table CMOBJPROPS6A