NC906_UPDATE_MS.sql 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. -- NC906_UPDATE_MS.SQL *DO NOT EDIT* Data Store Version: 906
  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. DROP TABLE NC_RESOURCE_LOCK
  27. go
  28. -------------------------------------------------------------------------------
  29. --$200-- recreate tables begin
  30. -------------------------------------------------------------------------------
  31. CREATE TABLE NC_RESOURCE_LOCK(
  32. LOCK_RESOURCE CHAR(50) NOT NULL,
  33. OWNER CHAR (50) NOT NULL,
  34. TIMESTAMP NUMERIC(18) NOT NULL
  35. )
  36. go
  37. -------------------------------------------------------------------------------
  38. --$201-- indices create begin
  39. -------------------------------------------------------------------------------
  40. -------------------------------------------------------------------------------
  41. --$202-- primary keys add begin
  42. -------------------------------------------------------------------------------
  43. ALTER TABLE NC_RESOURCE_LOCK ADD CONSTRAINT PR_RESOURCE_LOCK PRIMARY KEY (LOCK_RESOURCE)
  44. go
  45. -------------------------------------------------------------------------------
  46. --$203-- alter tables begin
  47. -------------------------------------------------------------------------------
  48. -------------------------------------------------------------------------------
  49. --$210-- views create begin
  50. -------------------------------------------------------------------------------
  51. -------------------------------------------------------------------------------
  52. --$220-- server data inserts begin
  53. -------------------------------------------------------------------------------
  54. -------------------------------------------------------------------------------
  55. --$230-- restore inserts begin
  56. -------------------------------------------------------------------------------
  57. INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(906, 'build no.')
  58. go
  59. -------------------------------------------------------------------------------
  60. --$250-- backup drop begin
  61. -------------------------------------------------------------------------------
  62. -------------------------------------------------------------------------------
  63. --$260-- end sql by function
  64. -------------------------------------------------------------------------------
  65. -- END NC906_UPDATE_MS.SQL * DO NOT EDIT *
  66. -------------------------------------------------------------------------------