dbUpgrade2_0031-to-2_0032_db2.sql 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 CMCLASSES drop constraint PK_CMCLASSES
  12. rename CMCLASSES to CMCLASSES_OLD
  13. create table CMCLASSES (
  14. CLASSID smallint NOT NULL,
  15. NAME varchar(50) NOT NULL,
  16. USAGE smallint,
  17. DEF blob(100K),
  18. constraint PK_CMCLASSES primary key(CLASSID)
  19. )
  20. insert into CMCLASSES(CLASSID,NAME,USAGE,DEF) select CLASSID,NAME,USAGE,DEF from CMCLASSES_OLD
  21. drop table CMCLASSES_OLD
  22. alter table CMOBJPROPS31 add IDSAUDITLVL smallint
  23. alter table CMOBJPROPS31 add ISSAUDITLVL smallint
  24. alter table CMOBJPROPS31 add IUSAUDITLVL smallint
  25. CREATE TABLE CMOBJPROPS43 (
  26. CMID integer not null,
  27. SPEC clob(1G),
  28. constraint PK_CMOBJPROPS43 primary key (CMID)
  29. )
  30. !RunCMScript CMUpgradeScript_configuration_update_5.xml