NC904_UPDATE_SYBASE.sql 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. -- IBM Confidential
  2. --
  3. -- OCO Source Materials
  4. --
  5. -- BI and PM: JSM
  6. --
  7. -- (c) Copyright IBM Corp. 2013
  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. -- NC902_UPDATE_SYBASE.SQL *DO NOT EDIT* Data Store Version: 904
  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. CREATE TABLE NC_TASK_HISTORY_SUB_INDEX(
  30. TASK_ID CHAR(45) NOT NULL,
  31. LAST_SUB_INDEX INTEGER NOT NULL
  32. ) lock datarows
  33. go
  34. -------------------------------------------------------------------------------
  35. --$201-- indices create begin
  36. -------------------------------------------------------------------------------
  37. -------------------------------------------------------------------------------
  38. --$202-- primary keys add begin
  39. -------------------------------------------------------------------------------
  40. ALTER TABLE NC_TASK_HISTORY_SUB_INDEX ADD CONSTRAINT PN_TASK_HS PRIMARY KEY (TASK_ID)
  41. go
  42. -------------------------------------------------------------------------------
  43. --$203-- alter tables begin
  44. -------------------------------------------------------------------------------
  45. -------------------------------------------------------------------------------
  46. --$210-- views create begin
  47. -------------------------------------------------------------------------------
  48. -------------------------------------------------------------------------------
  49. --$220-- server data inserts begin
  50. -------------------------------------------------------------------------------
  51. -------------------------------------------------------------------------------
  52. --$230-- restore inserts begin
  53. -------------------------------------------------------------------------------
  54. INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(904,'build no.')
  55. go
  56. -------------------------------------------------------------------------------
  57. --$250-- backup drop begin
  58. -------------------------------------------------------------------------------
  59. -------------------------------------------------------------------------------
  60. --$260-- end sql by function
  61. -------------------------------------------------------------------------------
  62. -- END NC904_UPDATE_SYBASE.SQL * DO NOT EDIT *
  63. -------------------------------------------------------------------------------