-- 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 CMOBJPROPS65 (
	CMID			integer not null,
	BURSTID			varchar (3996),
	constraint PK_CMOBJPROPS65 primary key (CMID) 
)

insert into CMOBJPROPS65(CMID, BURSTID) select CMID, varchar(BURSTID, 3996) from CMOBJPROPS61 where CMID in (select CMID from CMOBJECTS where CLASSID in (27,179))

alter table CMOBJPROPS61 drop constraint PK_CMOBJPROPS61

rename CMOBJPROPS61 to CMOBJPROPS61_OLD

create table CMOBJPROPS61 (
	CMID			integer not null,
	BURSTKEY		varchar (3982),
	constraint PK_CMOBJPROPS61 primary key (CMID) 
)

insert into CMOBJPROPS61(CMID, BURSTKEY) select CMID, BURSTKEY from CMOBJPROPS61_OLD

drop table CMOBJPROPS61_OLD

create index IDX_CMRESTARTID on CMOBJPROPS11(RESTARTEVENTID)
