dbUpgrade4_0023-to-4_0024_mssqlserver.sql 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 int NOT NULL ,
  13. CONTEXT ntext NULL,
  14. CONTEXTCOUNT int NULL,
  15. LASTPAGE nvarchar(256) null,
  16. CONSTRAINT PK_CMOBJPROPS60 PRIMARY KEY (CMID)
  17. )
  18. CREATE TABLE CMOBJPROPS61 (
  19. CMID int NOT NULL ,
  20. BURSTKEY nvarchar (4000) NULL,
  21. BURSTID ntext NULL,
  22. CONSTRAINT PK_CMOBJPROPS61 PRIMARY KEY (CMID)
  23. )
  24. alter table CMOBJPROPS28 add SPEC ntext NULL
  25. alter table CMOBJPROPS20 drop column EXECPAGEDEF
  26. alter table CMOBJPROPS20 add ALLOWSUBSCRIBE bit null
  27. UPDATE CMOBJPROPS20 set ALLOWSUBSCRIBE=0 WHERE CMID IN (SELECT CMID FROM CMOBJECTS WHERE CLASSID IN (10,19,37,80,139))
  28. insert into CMOBJPROPS60(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID=179
  29. insert into CMOBJPROPS61(CMID, BURSTKEY) SELECT CMID, BURSTKEY FROM CMOBJPROPS6 WHERE CMID in (SELECT CMID FROM CMOBJECTS WHERE CLASSID in (27,179))
  30. delete from CMOBJPROPS6 where CMID in (select CMID from CMOBJECTS where CLASSID IN (27,179))
  31. alter table CMOBJPROPS6 drop column BURSTKEY