

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


-------------------------------------------------------------------------------
--	NC9_UPDATE_SYBASE.SQL			*	DO NOT EDIT	 *			Data Store Version: 9		 
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
--$120-- foreign keys drop begin
-------------------------------------------------------------------------------

--NO FOREIGN KEY DROPS

-------------------------------------------------------------------------------
--$140-- tables drop begin
-------------------------------------------------------------------------------

--NO TABLE DROPS

-------------------------------------------------------------------------------
--$200-- recreate tables begin
-------------------------------------------------------------------------------

CREATE TABLE NC_EVENTSTATUS(
   PK_EVENT_ID                   CHAR(48) NOT NULL,
   EVENT_STATUS                  INTEGER NOT NULL
)
go

CREATE TABLE NC_JMSQUEUE (
	QUEUE_ENTRY_ID               INTEGER NOT NULL,
	QUEUE_NAME                   NVARCHAR(50) NULL,
	QUEUE_ENTRY                  IMAGE NULL
) 
go

-------------------------------------------------------------------------------
--$201-- indices create begin
-------------------------------------------------------------------------------

--NO INDICES

-------------------------------------------------------------------------------
--$202-- primary keys add begin
-------------------------------------------------------------------------------

ALTER TABLE NC_EVENTSTATUS
   ADD CONSTRAINT PN_NC_EVENTSTATUS PRIMARY KEY (PK_EVENT_ID)
go

ALTER TABLE NC_JMSQUEUE
   ADD CONSTRAINT PN_NC_JMSQUEUE PRIMARY KEY (QUEUE_ENTRY_ID)
go



-------------------------------------------------------------------------------
--$220-- server data inserts begin
-------------------------------------------------------------------------------

INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(9,'build no.')
go

INSERT INTO NC_CONFIGURATION(PROPERTY_KEY,PROPERTY_VALUE) 
	VALUES ('scheduler.queue.poll.interval.seconds','30')
go


-------------------------------------------------------------------------------
--$260-- end sql by function
-------------------------------------------------------------------------------
--	END NC9_UPDATE_SYBASE.SQL			*	DO NOT EDIT	 * 		 
-------------------------------------------------------------------------------
