-- 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 EVSAUDITLVL integer

CREATE table CMOBJPROPS74 (
	CMID         	integer not null,
	DEPLOYREFS	clob(1M),
	LAUNCHTYPE	varchar (512),
	SPEC		blob(1G),
	CONSTRAINT PK_CMOBJPROPS74 PRIMARY KEY (CMID)
) IN CMSCRIPT_CREATE_IN;

CREATE  UNIQUE  INDEX PK_CMOBJPROPS74 ON CMOBJPROPS74 (CMID) USING STOGROUP CMSCRIPT_STOGROUP;

create index IDX_CMLAUNCHTYPE on CMOBJPROPS74(LAUNCHTYPE) USING STOGROUP CMSCRIPT_STOGROUP;

CREATE AUXILIARY TABLE CMATB096
   IN CMSCRIPT_DATABASE.CMSCRIPT_CS_IDCML096
   STORES CMOBJPROPS74
   COLUMN DEPLOYREFS;

CREATE  UNIQUE  INDEX CMIDX096 ON CMATB096 USING STOGROUP CMSCRIPT_STOGROUP;

CREATE AUXILIARY TABLE CMATB097
   IN CMSCRIPT_DATABASE.CMSCRIPT_CS_IDCML097
   STORES CMOBJPROPS74
   COLUMN SPEC;

CREATE  UNIQUE  INDEX CMIDX097 ON CMATB097 USING STOGROUP CMSCRIPT_STOGROUP;