-- Licensed Materials - Property of IBM
--
-- BI and PM: CM
--
-- (C) Copyright IBM Corp. 2011
--
-- US Government Users Restricted Rights - Use, duplication or disclosure
-- restricted by GSA ADP Schedule Contract with IBM Corp.

ALTER TABLE CMOBJECTS ADD TENANTID INTEGER DEFAULT 0 NOT NULL;

CREATE TABLE CMTENANTID (
	TENANTID	INTEGER NOT NULL,
	TENANTNAME	LVARCHAR(255) NOT NULL,
	PRIMARY KEY (TENANTID) CONSTRAINT PK_CMTENANTID,
	UNIQUE (TENANTNAME) CONSTRAINT UN_CMTENANTID_TENANTNAME
)lock mode row;

INSERT INTO CMTENANTID (TENANTID,TENANTNAME) VALUES (0,'');

