123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- --
- -- 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.
- --
- -------------------------------------------------------------------------------
- --NC4_UPDATE_DB2.SQL * DO NOT EDIT * Data Store Version: 5
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$100-- backup create begin
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$110-- backup inserts begin
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$120-- foreign keys drop begin
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$130-- views drop begin
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$140-- tables drop begin
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$200-- recreate tables begin
- -------------------------------------------------------------------------------
- CREATE TABLE NC_TASKSCHEDULE_CANCELLED_RUNS (
- FK_TASKSCHEDULE_ID INTEGER NOT NULL,
- CANCELLED_DATE NUMERIC(14) NOT NULL
- );
- -------------------------------------------------------------------------------
- --$201-- indices create begin
- -------------------------------------------------------------------------------
- CREATE INDEX I1N_CANCELLED_DATE ON NC_TASKSCHEDULE_CANCELLED_RUNS (
- FK_TASKSCHEDULE_ID);
- -------------------------------------------------------------------------------
- --$202-- primary keys add begin
- -------------------------------------------------------------------------------
- ALTER TABLE NC_TASKSCHEDULE_CANCELLED_RUNS
- ADD CONSTRAINT PN_CANCELLED_DATES PRIMARY KEY (FK_TASKSCHEDULE_ID,CANCELLED_DATE));
- -------------------------------------------------------------------------------
- --$203-- alter tables begin
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$210-- views create begin
- -------------------------------------------------------------------------------
-
- -------------------------------------------------------------------------------
- --$220-- server data inserts begin
- -------------------------------------------------------------------------------
-
- INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES (5,'build no.');
- -------------------------------------------------------------------------------
- --$230-- restore inserts begin
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$240-- foreign keys add begin
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$250-- backup drop begin
- -------------------------------------------------------------------------------
- -------------------------------------------------------------------------------
- --$260-- end sql by function
- -------------------------------------------------------------------------------
- --END NC5_UPDATE_DB2.SQL * DO NOT EDIT * COMMIT
- -------------------------------------------------------------------------------
|