

--
--    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.
--    


-------------------------------------------------------------------------------
-- NC309_UPDATE_ORA.SQL	       *DO NOT EDIT*		Data Store Version: 309		 
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
--$100-- backup create begin
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
--$110-- backup inserts begin
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
--$130-- views drop begin
-------------------------------------------------------------------------------

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

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

CREATE TABLE NC_TASK_HISTORY_DETAIL(
   TASK_ID	CHAR(20) NOT NULL,
   SUB_INDEX    INTEGER NOT NULL,
   TASK 	BLOB
);

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

ALTER TABLE NC_TASK_HISTORY_DETAIL ADD CONSTRAINT PN_TASK_HD PRIMARY KEY (TASK_ID,SUB_INDEX);

-------------------------------------------------------------------------------
--$203-- alter tables begin
-------------------------------------------------------------------------------

ALTER TABLE NC_TASK_QUEUE ADD ACTUAL_EXECUTION_TIME NUMERIC;

ALTER TABLE NC_TASK_QUEUE ADD DISPATCHER_ID CHAR(45);

ALTER TABLE NC_TASK_QUEUE ADD SCHEDULE_TRIGGER_NAME VARCHAR2(255);

ALTER TABLE NC_TASK_QUEUE ADD SCHEDULE_TYPE CHAR(15);

ALTER TABLE NC_TASK_QUEUE ADD ACCOUNT_PATH VARCHAR2(1024) ;
	
ALTER TABLE NC_TASK_QUEUE ADD STOREID CHAR(34);

ALTER TABLE NC_TASK_QUEUE ADD OBJECT_CLASS CHAR(64);

-------------------------------------------------------------------------------
--$210-- views create begin
-------------------------------------------------------------------------------

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

INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(309,'build no.');

 -------------------------------------------------------------------------------
 --$230-- restore inserts begin
 -------------------------------------------------------------------------------

 -------------------------------------------------------------------------------
 --$250-- backup drop begin
 -------------------------------------------------------------------------------

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