dbUpgrade0_99905-to-0_9997_db2.sql 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. alter table CMOBJPROPS26 add DELIVOPTIONS clob(1M)
  12. insert into CMOBJPROPS26(CMID) SELECT CMID FROM CMOBJECTS WHERE (CLASSID = 17 OR CLASSID = 39 OR CLASSID = 55 OR CLASSID = 57) AND (CMID NOT IN (SELECT CMID FROM CMOBJPROPS26))
  13. !RunCMScript CMUpgradeScript_transient_1.xml
  14. !RunCMScript CMUpgradeScript_transient_2.xml
  15. !RunCMScript CMUpgradeScript_cognos_roles1_add.xml
  16. !RunCMScript CMUpgradeScript_cognos_roles1_update.xml
  17. create table CMOBJPROPS30 (
  18. CMID integer not null,
  19. HANDLE varchar(255),
  20. BINDING clob(1M),
  21. REGISTRATION clob(64K),
  22. SERVICEDESCR clob(1M),
  23. LAYOUT clob(1M),
  24. CONTEXT clob(64K),
  25. constraint PK_CMOBJPROPS30 primary key (CMID)
  26. )
  27. insert into CMOBJPROPS30(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID=5
  28. !RunCMScript CMUpgradeScript_portal_1.xml
  29. !RunCMScript CMUpgradeScript_portal_2.xml
  30. alter table CMOBJPROPS5 add column DETAILTIME timestamp add column DETAIL clob(1M)
  31. insert into CMOBJPROPS5(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID=78
  32. CREATE TABLE CMOBJPROPS28 (
  33. CMID integer not null,
  34. EVENTKEY clob (4000),
  35. EVENTTYPES clob (4000),
  36. constraint PK_CMOBJPROPS28 primary key (CMID)
  37. )
  38. insert into CMOBJPROPS11(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID=78
  39. insert into CMOBJPROPS26(CMID) select CMID from CMOBJECTS WHERE (CLASSID=5 OR CLASSID=50 OR CLASSID=52 OR CLASSID=95 OR CLASSID=96 OR CLASSID=97)
  40. !MigrateRetentionsForHistory
  41. !RunCMScript CMUpgradeScript_adminFolder_add.xml
  42. !RunCMScript CMUpgradeScript_adminFolder_update.xml