NC317_UPDATE_DB2.sql 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. -- NC317_UPDATE_DB2.SQL *DO NOT EDIT* Data Store Version: 317
  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. CREATE TABLE NC_TASK_ANCESTOR_STOREIDS(
  29. TASK_ID CHAR(45) NOT NULL,
  30. ANCESTOR_STORE_ID VARCHAR(256) NOT NULL
  31. );
  32. -------------------------------------------------------------------------------
  33. --$202-- primary keys add begin
  34. -------------------------------------------------------------------------------
  35. ALTER TABLE NC_TASK_ANCESTOR_STOREIDS
  36. ADD CONSTRAINT PK_ANCESTOR_IDS PRIMARY KEY (TASK_ID, ANCESTOR_STORE_ID);
  37. -------------------------------------------------------------------------------
  38. --$203-- alter tables begin
  39. -------------------------------------------------------------------------------
  40. ALTER TABLE NC_TASK_QUEUE ADD OWNER_STOREID VARCHAR(256);
  41. -------------------------------------------------------------------------------
  42. --$210-- views create begin
  43. -------------------------------------------------------------------------------
  44. -------------------------------------------------------------------------------
  45. --$220-- server data inserts begin
  46. -------------------------------------------------------------------------------
  47. INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(317,'build no.');
  48. -------------------------------------------------------------------------------
  49. --$230-- restore inserts begin
  50. -------------------------------------------------------------------------------
  51. -------------------------------------------------------------------------------
  52. --$250-- backup drop begin
  53. -------------------------------------------------------------------------------
  54. -------------------------------------------------------------------------------
  55. --$260-- end sql by function
  56. -------------------------------------------------------------------------------
  57. -- END NC317_UPDATE_DB2.SQL * DO NOT EDIT *
  58. -------------------------------------------------------------------------------