dbUpgrade5_0012-to-5_0013_db2zOS.sql 1.3 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. CREATE TABLE CMOBJPROPS79 (
  12. CMID integer not null,
  13. PUBLISHED decimal(1, 0),
  14. SPEC clob(1M),
  15. CONSTRAINT PK_CMOBJPROPS79 PRIMARY KEY (CMID)
  16. ) IN CMSCRIPT_CREATE_IN;
  17. CREATE UNIQUE INDEX PK_CMOBJPROPS79 ON CMOBJPROPS79 (CMID) USING STOGROUP CMSCRIPT_STOGROUP;
  18. CREATE AUXILIARY TABLE CMATB100
  19. IN CMSCRIPT_DATABASE.CMSCRIPT_CS_IDCML100
  20. STORES CMOBJPROPS79
  21. COLUMN SPEC;
  22. CREATE UNIQUE INDEX CMIDX100 ON CMATB100 USING STOGROUP CMSCRIPT_STOGROUP;
  23. insert into CMOBJPROPS79 (CMID) select CMID from CMOBJECTS where CLASSID = 142;
  24. !RunCMScript CMUpgradeScript_capabilities_41.xml
  25. alter table CMOBJPROPS31 add column QSAUDITLVL smallint;
  26. alter table CMOBJPROPS48 add column QSDIAGENABLED decimal(1, 0);
  27. alter table CMOBJPROPS48 add column QSMETENABLED decimal(1, 0);
  28. alter table CMOBJPROPS48 add column QSQUERYEXECTR decimal(1, 0);
  29. alter table CMOBJPROPS48 add column QSPLANTRC decimal(1, 0);
  30. !RunCMScript CMUpgradeScript_configuration_update_26.xml