-- 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).


alter table CMOBJPROPS31 add PACSAUDITLVL smallint

alter table CMOBJPROPS31 add PRSAUDITLVL smallint

alter table CMOBJPROPS31 add PTSAUDITLVL smallint

CREATE TABLE CMOBJPROPS40 (
	CMID			integer not null,
	APPGUID			varchar(50),
	APPID			varchar (512),
	APPSTATE		smallint,
	APPURL			clob (4000),
	constraint PK_CMOBJPROPS40 primary key (CMID) 
)

CREATE TABLE CMOBJPROPS41 (
	CMID			integer not null,
	DEPTH			integer,
	ITEMID			varchar (512),
	PARENTID		varchar (512),
	CONSTRAINT PK_CMOBJPROPS41 primary key (CMID) 
)

CREATE TABLE CMOBJPROPS42 (
	CMID			integer not null,
	SPEC			clob(1G),
	constraint PK_CMOBJPROPS42 primary key (CMID) 
)

!RunCMScript CMUpgradeScript_configuration_update_4.xml

!RunCMScript CMUpgradeScript_cognos_roles2_add.xml

!RunCMScript CMUpgradeScript_cognos_roles2_update.xml

!RunCMScript CMUpgradeScript_capabilities_22_add.xml

!RunCMScript CMUpgradeScript_capabilities_22_update.xml