dbUpgrade0_9996-to-0_9997_db2.sql 1.4 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. create table CMOBJPROPS6A (
  12. CMID integer not null,
  13. BURSTKEY varchar (3982),
  14. constraint PK_CMOBJPROPS6A primary key (CMID)
  15. )
  16. insert into CMOBJPROPS6A(CMID, BURSTKEY) select CMID, cast(BURSTKEY as varchar(3982)) from CMOBJPROPS6 where CMID in (select CMID from CMOBJECTS where CLASSID = 27)
  17. alter table CMOBJPROPS6 drop constraint PK_CMOBJPROPS6
  18. rename CMOBJPROPS6 to CMOBJPROPS6_OLD
  19. create table CMOBJPROPS6 (
  20. CMID integer not null,
  21. URI clob (4000),
  22. TARGET clob (4000),
  23. STEPOBJECT clob (4000),
  24. BASE clob (4000),
  25. CREDENTIAL clob (4000),
  26. DISPATCHERPATH varchar (3220),
  27. PAGE clob (4000),
  28. CREDNAMESPACES clob (4000),
  29. constraint PK_CMOBJPROPS6 primary key (CMID)
  30. )
  31. insert into CMOBJPROPS6(CMID, URI, TARGET, STEPOBJECT, BASE, CREDENTIAL, DISPATCHERPATH, PAGE, CREDNAMESPACES) select CMID, URI, TARGET, STEPOBJECT, BASE, CREDENTIAL, DISPATCHERPATH, PAGE, CREDNAMESPACES from CMOBJPROPS6_OLD where CMID in (select CMID from CMOBJECTS where CLASSID <> 27)
  32. drop table CMOBJPROPS6_OLD