-- 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 CMSYSPROPS (
	PROPNAME	varchar (50) NOT NULL ,
	CI_PROPNAME	varchar (50) NOT NULL,
	PROPVALUE	clob 	(1G),
	constraint PK_CMSYSPROPS primary key (CI_PROPNAME)
) IN CMSCRIPT_CREATE_IN;

CREATE  UNIQUE  INDEX PK_CMSYSPROPS ON CMSYSPROPS (CI_PROPNAME) USING STOGROUP CMSCRIPT_STOGROUP;

CREATE AUXILIARY TABLE CMATB001
   IN CMSCRIPT_DATABASE.CMSCRIPT_CS_IDCML001
   STORES CMSYSPROPS
   COLUMN PROPVALUE;

CREATE  UNIQUE  INDEX CMIDX001 ON CMATB001 USING STOGROUP CMSCRIPT_STOGROUP;

insert into CMSYSPROPS (PROPNAME, CI_PROPNAME, PROPVALUE) values ('CMStoreServer', upper('CMStoreServer'), NULL);

create table CMCAPACITY (
	CMPATH varchar (3220) not null,
	CAPACITY float,
	USAGE smallint not null
) IN CMSCRIPT_CREATE_IN;
