dbUpgrade4_0024-to-4_0025_db2.sql 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 CMOBJPROPS50 drop constraint PK_CMOBJPROPS50
  12. rename CMOBJPROPS50 to CMOBJPROPS50_OLD
  13. create table CMOBJPROPS50 (
  14. CMID integer not null,
  15. CONTEXT blob(1G),
  16. CONTEXTCOUNT integer,
  17. LASTPAGE varchar(512),
  18. constraint PK_CMOBJPROPS50 primary key (CMID)
  19. )
  20. insert into CMOBJPROPS50(CMID, CONTEXTCOUNT, LASTPAGE) select CMID, CONTEXTCOUNT, LASTPAGE from CMOBJPROPS50_OLD
  21. drop table CMOBJPROPS50_OLD
  22. drop table CMOBJPROPS60
  23. create table CMOBJPROPS60 (
  24. CMID integer not null,
  25. CONTEXT blob(1G),
  26. CONTEXTCOUNT integer,
  27. LASTPAGE varchar(512),
  28. constraint PK_CMOBJPROPS60 primary key (CMID)
  29. )
  30. insert into CMOBJPROPS60(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID=179