NC307_UPDATE_DB2.sql 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. -- NC307_UPDATE_DB2.SQL *DO NOT EDIT* Data Store Version: 307
  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. -------------------------------------------------------------------------------
  29. --$202-- primary keys add begin
  30. -------------------------------------------------------------------------------
  31. -------------------------------------------------------------------------------
  32. --$203-- alter tables begin
  33. -------------------------------------------------------------------------------
  34. ALTER TABLE NC_TASK
  35. ADD COLUMN LOCATION_ROOT VARCHAR(256);
  36. ALTER TABLE NC_TASK
  37. ADD COLUMN OBJECT_CLASS VARCHAR(256);
  38. ALTER TABLE NC_TASK
  39. ADD COLUMN OWNED_BY VARCHAR(256);
  40. ALTER TABLE NC_TASKSCHEDULE
  41. ADD COLUMN PRIORITY INTEGER WITH DEFAULT 3 NOT NULL;
  42. -------------------------------------------------------------------------------
  43. --$210-- views create begin
  44. -------------------------------------------------------------------------------
  45. -------------------------------------------------------------------------------
  46. --$220-- server data inserts begin
  47. -------------------------------------------------------------------------------
  48. INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(307,'build no.');
  49. -------------------------------------------------------------------------------
  50. --$230-- restore inserts begin
  51. -------------------------------------------------------------------------------
  52. -------------------------------------------------------------------------------
  53. --$250-- backup drop begin
  54. -------------------------------------------------------------------------------
  55. -------------------------------------------------------------------------------
  56. --$260-- end sql by function
  57. -------------------------------------------------------------------------------
  58. -- END NC307_UPDATE_DB2.SQL * DO NOT EDIT *
  59. -------------------------------------------------------------------------------