-- Licensed Materials - Property of IBM
--
-- BI and PM: CM
--
-- (C) Copyright IBM Corp. 2008, 2009
--
-- US Government Users Restricted Rights - Use, duplication or disclosure
-- restricted by GSA ADP Schedule Contract with IBM Corp.

-- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
-- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).


--CMSCRIPT_UPGRADE_SKIP_COMMAND(3.0063,4.0001)
alter table CMOBJPROPS31 add (  PDSAUDITLVL number(3) null );

--CMSCRIPT_UPGRADE_SKIP_COMMAND(3.006801,4.0001)
alter table CMOBJPROPS48 add (  PDSCONNECTIONS number(10) null );

--CMSCRIPT_UPGRADE_SKIP_COMMAND(3.0063,4.0001)
CREATE TABLE CMOBJPROPS58 (
	CMID			number(10) NOT NULL,
	PDSELISTAXSCACHE	number(10) NULL,
	PDSSHOWCELLANN		number(1)  NULL,
	PDSMAXPROCS		number(10) NULL,
	CONSTRAINT PK_CMOBJPROPS58 PRIMARY KEY (CMID) 
);

--CMSCRIPT_UPGRADE_SKIP_COMMAND(3.0063,4.0001)
INSERT INTO CMOBJPROPS58(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID IN (4, 14, 34);

--CMSCRIPT_UPGRADE_SKIP_COMMAND(3.0063,4.0001)
!RunCMScript CMUpgradeScript_configuration_update_11.xml

--CMSCRIPT_UPGRADE_SKIP_COMMAND(3.006801,4.0001)
!RunCMScript CMUpgradeScript_configuration_update_11_2.xml