-- 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 smallint

--CMSCRIPT_UPGRADE_SKIP_COMMAND(3.006801,4.0001)
alter table CMOBJPROPS48 add PDSCONNECTIONS integer

--CMSCRIPT_UPGRADE_SKIP_COMMAND(3.0063,4.0001)
CREATE TABLE CMOBJPROPS58 (
	CMID			integer not null,
	PDSELISTAXSCACHE	integer,
	PDSSHOWCELLANN		decimal(1,0),
	PDSMAXPROCS		integer,	
	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
