-- 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 CMOBJPROPS50 drop constraint PK_CMOBJPROPS50

rename CMOBJPROPS50 to CMOBJPROPS50_OLD

create table CMOBJPROPS50 (
	CMID            integer not null,
	CONTEXT         blob(1G),
	CONTEXTCOUNT	integer,
	LASTPAGE	varchar(512),
	constraint PK_CMOBJPROPS50 primary key (CMID)
)

insert into CMOBJPROPS50(CMID, CONTEXTCOUNT, LASTPAGE) select CMID, CONTEXTCOUNT, LASTPAGE from CMOBJPROPS50_OLD

drop table CMOBJPROPS50_OLD

drop table CMOBJPROPS60

create table CMOBJPROPS60 (
	CMID            integer not null,
	CONTEXT         blob(1G),
	CONTEXTCOUNT	integer,
	LASTPAGE	varchar(512),
	constraint PK_CMOBJPROPS60 primary key (CMID)
)

insert into CMOBJPROPS60(CMID) SELECT CMID FROM CMOBJECTS WHERE CLASSID=179
