NC836_UPDATE_DB2.sql 3.7 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. -- NC836_UPDATE_DB2.SQL *DO NOT EDIT* Data Store Version: 836
  12. -------------------------------------------------------------------------------
  13. -------------------------------------------------------------------------------
  14. --$100-- backup create begin
  15. -------------------------------------------------------------------------------
  16. -------------------------------------------------------------------------------
  17. --$110-- backup inserts begin
  18. -------------------------------------------------------------------------------
  19. -------------------------------------------------------------------------------
  20. --$120-- foreign keys drop begin
  21. -------------------------------------------------------------------------------
  22. -------------------------------------------------------------------------------
  23. --$130-- views drop begin
  24. -------------------------------------------------------------------------------
  25. -------------------------------------------------------------------------------
  26. --$140-- tables drop begin
  27. -------------------------------------------------------------------------------
  28. -------------------------------------------------------------------------------
  29. --$200-- recreate tables begin
  30. -------------------------------------------------------------------------------
  31. -------------------------------------------------------------------------------
  32. --$201-- indices create begin
  33. -------------------------------------------------------------------------------
  34. -------------------------------------------------------------------------------
  35. --$202-- primary keys add begin
  36. -------------------------------------------------------------------------------
  37. -------------------------------------------------------------------------------
  38. --$203-- alter tables begin
  39. -------------------------------------------------------------------------------
  40. ALTER TABLE NC_TASK ALTER COLUMN OWNED_BY SET DATA TYPE VARCHAR(1024);
  41. ALTER TABLE NC_TASKSCHEDULE ALTER COLUMN SCHEDULED_BY SET DATA TYPE VARCHAR(1024);
  42. ALTER TABLE NC_TASK_QUEUE ALTER COLUMN OWNER_STOREID SET DATA TYPE VARCHAR(1024);
  43. -------------------------------------------------------------------------------
  44. --$210-- views create begin
  45. -------------------------------------------------------------------------------
  46. -------------------------------------------------------------------------------
  47. --$220-- server data inserts begin
  48. -------------------------------------------------------------------------------
  49. INSERT INTO NC_DB_VERSION (DB_VERSION_ID, BUILD) VALUES(836, 'build no.');
  50. -------------------------------------------------------------------------------
  51. --$230-- restore inserts begin
  52. -------------------------------------------------------------------------------
  53. -------------------------------------------------------------------------------
  54. --$240-- foreign keys add begin
  55. -------------------------------------------------------------------------------
  56. -------------------------------------------------------------------------------
  57. --$250-- backup drop begin
  58. -------------------------------------------------------------------------------
  59. -------------------------------------------------------------------------------
  60. --$260-- end sql by function
  61. -------------------------------------------------------------------------------
  62. -- END NC836_UPDATE_DB2.SQL * DO NOT EDIT *
  63. -------------------------------------------------------------------------------