-- -- 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. -- ------------------------------------------------------------------------------- -- NC310_UPDATE_MS.SQL *DO NOT EDIT* Data Store Version: 310 ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- --$100-- backup create begin ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- --$110-- backup inserts begin ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- --$130-- views drop begin ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- --$140-- tables drop begin ------------------------------------------------------------------------------- DROP TABLE NC_TASK_PROPERTY go ------------------------------------------------------------------------------- --$200-- recreate tables begin ------------------------------------------------------------------------------- CREATE TABLE NC_TASK_PROPERTY ( TASK_ID CHAR (20) NOT NULL, PROP_NAME CHAR (20) NOT NULL, PROP_VALUE NVARCHAR(2000) ) go ------------------------------------------------------------------------------- --$202-- primary keys add begin ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- --$203-- alter tables begin ------------------------------------------------------------------------------- ALTER TABLE NC_TASK_QUEUE ADD ACTUAL_COMPLETION_TIME NUMERIC go ALTER TABLE NC_TASK_PROPERTY ADD CONSTRAINT PN_TASK_PROPERTY PRIMARY KEY (TASK_ID,PROP_NAME) go ------------------------------------------------------------------------------- --$210-- views create begin ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- --$220-- server data inserts begin ------------------------------------------------------------------------------- INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(310,'build no.') go ------------------------------------------------------------------------------- --$230-- restore inserts begin ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- --$250-- backup drop begin ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- --$260-- end sql by function ------------------------------------------------------------------------------- -- END NC310_UPDATE_MS.SQL * DO NOT EDIT * -------------------------------------------------------------------------------