

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


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

--NO FOREIGN KEY DROPS

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

--NO TABLE DROPS

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

CREATE TABLE NC_TASKSCHEDULE_CANCELLED_RUNS(
	FK_TASKSCHEDULE_ID 	INTEGER NOT NULL,
	CANCELLED_DATE		NUMERIC NOT NULL
)
go


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

CREATE INDEX I1N_CANCELLED_DATES ON NC_TASKSCHEDULE_CANCELLED_RUNS (
   FK_TASKSCHEDULE_ID)
go

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

ALTER TABLE NC_TASKSCHEDULE_CANCELLED_RUNS
	ADD CONSTRAINT PN_CANCELLED_DATES PRIMARY KEY (FK_TASKSCHEDULE_ID, CANCELLED_DATE)
go


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

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


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