NC1032_UPDATE_MS.sql 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. -- IBM Confidential
  2. --
  3. -- OCO Source Materials
  4. --
  5. -- BI and PM: JSM
  6. --
  7. -- (c) Copyright IBM Corp. 2015
  8. --
  9. -- The source code for this program is not published or otherwise divested of its trade secrets, irrespective of what has been deposited with the U.S. Copyright Office.
  10. --
  11. -------------------------------------------------------------------------------
  12. -- NC1032_UPDATE_MS.SQL *DO NOT EDIT* Data Store Version: 1032
  13. -------------------------------------------------------------------------------
  14. -------------------------------------------------------------------------------
  15. --$100-- backup create begin
  16. -------------------------------------------------------------------------------
  17. -------------------------------------------------------------------------------
  18. --$110-- backup inserts begin
  19. -------------------------------------------------------------------------------
  20. -------------------------------------------------------------------------------
  21. --$130-- views drop begin
  22. -------------------------------------------------------------------------------
  23. -------------------------------------------------------------------------------
  24. --$140-- tables drop begin
  25. -------------------------------------------------------------------------------
  26. -------------------------------------------------------------------------------
  27. --$200-- recreate tables begin
  28. -------------------------------------------------------------------------------
  29. -------------------------------------------------------------------------------
  30. --$201-- indices create begin
  31. -------------------------------------------------------------------------------
  32. -------------------------------------------------------------------------------
  33. --$202-- primary keys add begin
  34. -------------------------------------------------------------------------------
  35. -------------------------------------------------------------------------------
  36. --$203-- alter tables begin
  37. -------------------------------------------------------------------------------
  38. ALTER TABLE NC_TASK_QUEUE DROP CONSTRAINT PN_TASK_QUEUE
  39. go
  40. ALTER TABLE NC_TSE_STATE_MAP DROP CONSTRAINT PN_TSE_STATE_MAP
  41. go
  42. ALTER TABLE NC_TASK_QUEUE ADD CONSTRAINT PN_TASK_QUEUE PRIMARY KEY NONCLUSTERED (TASK_ID)
  43. go
  44. ALTER TABLE NC_TSE_STATE_MAP ADD CONSTRAINT PN_TSE_STATE_MAP PRIMARY KEY NONCLUSTERED (TASK_ID)
  45. go
  46. -------------------------------------------------------------------------------
  47. --$210-- views create begin
  48. -------------------------------------------------------------------------------
  49. -------------------------------------------------------------------------------
  50. --$220-- server data inserts begin
  51. -------------------------------------------------------------------------------
  52. -------------------------------------------------------------------------------
  53. --$230-- restore inserts begin
  54. -------------------------------------------------------------------------------
  55. INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(1032, 'build no.')
  56. go
  57. -------------------------------------------------------------------------------
  58. --$250-- backup drop begin
  59. -------------------------------------------------------------------------------
  60. -------------------------------------------------------------------------------
  61. --$260-- end sql by function
  62. -------------------------------------------------------------------------------
  63. -- END NC1032_UPDATE_MS.SQL * DO NOT EDIT *
  64. -------------------------------------------------------------------------------