dbUpgrade0_9999-to-0_99991_db2.sql 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. !MigrateOptions
  12. drop table CMOBJPROPS19
  13. alter table CMOBJPROPS7 drop constraint PK_CMOBJPROPS7
  14. rename CMOBJPROPS7 to CMOBJPROPS7_OLD
  15. create table CMOBJPROPS7 (
  16. CMID integer not null,
  17. EXECERROR clob(1G),
  18. CONFIGURATION clob(1G),
  19. PORTALPREFS clob(1G),
  20. CCREDENTIALS clob(1G),
  21. CMODEL blob(1G),
  22. SRC clob(1G),
  23. SPEC clob(1G),
  24. STATE clob(1G),
  25. GOVERNORS clob(1G),
  26. NAMESPFORMAT clob(4000),
  27. constraint PK_CMOBJPROPS7 primary key (CMID)
  28. )
  29. insert into CMOBJPROPS7(CMID,EXECERROR,CONFIGURATION,PORTALPREFS,CCREDENTIALS,CMODEL,SRC,SPEC,STATE,GOVERNORS,NAMESPFORMAT) select CMID,EXECERROR,CONFIGURATION,PORTALPREFS,CCREDENTIALS,CMODEL,SRC,SPEC,STATE,GOVERNORS,NAMESPFORMAT from CMOBJPROPS7_OLD
  30. drop table CMOBJPROPS7_OLD
  31. delete from CMOBJPROPS7 where CMID in (select CMID from CMOBJECTS where CLASSID in(50,52))