dbUpgrade4_0039-to-4_0041_db2.sql 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 CMOBJPROPS65 (
  12. CMID integer not null,
  13. BURSTID varchar (3996),
  14. constraint PK_CMOBJPROPS65 primary key (CMID)
  15. )
  16. insert into CMOBJPROPS65(CMID, BURSTID) select CMID, varchar(BURSTID, 3996) from CMOBJPROPS61 where CMID in (select CMID from CMOBJECTS where CLASSID in (27,179))
  17. alter table CMOBJPROPS61 drop constraint PK_CMOBJPROPS61
  18. rename CMOBJPROPS61 to CMOBJPROPS61_OLD
  19. create table CMOBJPROPS61 (
  20. CMID integer not null,
  21. BURSTKEY varchar (3982),
  22. constraint PK_CMOBJPROPS61 primary key (CMID)
  23. )
  24. insert into CMOBJPROPS61(CMID, BURSTKEY) select CMID, BURSTKEY from CMOBJPROPS61_OLD
  25. drop table CMOBJPROPS61_OLD
  26. create index IDX_CMRESTARTID on CMOBJPROPS11(RESTARTEVENTID)