dbUpgrade0_99904-to-0_9997_mssqlserver.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 ntext null
  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. CREATE TABLE CMOBJPROPS28 (
  14. CMID int NOT NULL,
  15. EVENTKEY ntext NULL,
  16. EVENTTYPES ntext NULL,
  17. CONSTRAINT PK_CMOBJPROPS28 PRIMARY KEY (CMID)
  18. )
  19. !RunCMScript CMUpgradeScript_transient_1.xml
  20. !RunCMScript CMUpgradeScript_transient_2.xml
  21. !RunCMScript CMUpgradeScript_cognos_roles1_add.xml
  22. !RunCMScript CMUpgradeScript_cognos_roles1_update.xml
  23. CREATE TABLE CMOBJPROPS30 (
  24. CMID integer not null,
  25. HANDLE nvarchar (255) NULL,
  26. BINDING ntext NULL,
  27. REGISTRATION ntext NULL,
  28. SERVICEDESCR ntext NULL,
  29. LAYOUT ntext NULL,
  30. CONTEXT ntext NULL,
  31. CONSTRAINT PK_CMOBJPROPS30 PRIMARY KEY (CMID)
  32. )
  33. insert into CMOBJPROPS30(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID=5
  34. !RunCMScript CMUpgradeScript_portal_1.xml
  35. !RunCMScript CMUpgradeScript_portal_2.xml
  36. alter table CMOBJPROPS5 add DETAILTIME datetime null, DETAIL ntext null
  37. insert into CMOBJPROPS5(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID=78
  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