NC317_UPDATE_MS.sql 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --
  2. -- Licensed Materials - Property of IBM
  3. --
  4. -- BI and PM: JSM
  5. --
  6. -- (c) Copyright IBM Corp. 2003, 2010.
  7. --
  8. -- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. --
  10. -------------------------------------------------------------------------------
  11. -- NC317_UPDATE_MS.SQL *DO NOT EDIT* Data Store Version: 317
  12. -------------------------------------------------------------------------------
  13. -------------------------------------------------------------------------------
  14. --$100-- backup create begin
  15. -------------------------------------------------------------------------------
  16. -------------------------------------------------------------------------------
  17. --$110-- backup inserts begin
  18. -------------------------------------------------------------------------------
  19. -------------------------------------------------------------------------------
  20. --$130-- views drop begin
  21. -------------------------------------------------------------------------------
  22. -------------------------------------------------------------------------------
  23. --$140-- tables drop begin
  24. -------------------------------------------------------------------------------
  25. -------------------------------------------------------------------------------
  26. --$200-- recreate tables begin
  27. -------------------------------------------------------------------------------
  28. CREATE TABLE NC_TASK_ANCESTOR_STOREIDS(
  29. TASK_ID CHAR(45) NOT NULL,
  30. ANCESTOR_STORE_ID NVARCHAR(256) NOT NULL
  31. )
  32. go
  33. -------------------------------------------------------------------------------
  34. --$201-- indices create begin
  35. -------------------------------------------------------------------------------
  36. -------------------------------------------------------------------------------
  37. --$202-- primary keys add begin
  38. -------------------------------------------------------------------------------
  39. ALTER TABLE NC_TASK_ANCESTOR_STOREIDS
  40. ADD CONSTRAINT PK_ANCESTOR_IDS PRIMARY KEY (TASK_ID ASC, ANCESTOR_STORE_ID ASC)
  41. go
  42. -------------------------------------------------------------------------------
  43. --$203-- alter tables begin
  44. -------------------------------------------------------------------------------
  45. ALTER TABLE NC_TASK_QUEUE ADD OWNER_STOREID NVARCHAR(256)
  46. go
  47. -------------------------------------------------------------------------------
  48. --$210-- views create begin
  49. -------------------------------------------------------------------------------
  50. -------------------------------------------------------------------------------
  51. --$220-- server data inserts begin
  52. -------------------------------------------------------------------------------
  53. INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(317,'build no.')
  54. go
  55. -------------------------------------------------------------------------------
  56. --$230-- restore inserts begin
  57. -------------------------------------------------------------------------------
  58. -------------------------------------------------------------------------------
  59. --$250-- backup drop begin
  60. -------------------------------------------------------------------------------
  61. -------------------------------------------------------------------------------
  62. --$260-- end sql by function
  63. -------------------------------------------------------------------------------
  64. -- END NC317_UPDATE_MS.SQL * DO NOT EDIT *
  65. -------------------------------------------------------------------------------