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

create table CMOBJPROPS80 (
	CMID			integer not null,
	REPOSITORYRULES	clob(1G),
	CONSTRAINT PK_CMOBJPROPS80 PRIMARY KEY (CMID) 
) IN CMSCRIPT_CREATE_IN;

CREATE  UNIQUE  INDEX PK_CMOBJPROPS80 ON CMOBJPROPS80 (CMID) USING STOGROUP CMSCRIPT_STOGROUP;

CREATE AUXILIARY TABLE CMATB104
   IN CMSCRIPT_DATABASE.CMSCRIPT_CS_IDCML104
   STORES CMOBJPROPS80
   COLUMN REPOSITORYRULES;

CREATE  UNIQUE  INDEX CMIDX104 ON CMATB104 USING STOGROUP CMSCRIPT_STOGROUP;

insert into CMOBJPROPS80 (CMID) select CMID from CMOBJECTS where CLASSID in (1, 18, 33)

