NC906_UPDATE_Hsql.sql 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_Hsql.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. -------------------------------------------------------------------------------
  28. --$200-- recreate tables begin
  29. -------------------------------------------------------------------------------
  30. CREATE TABLE NC_RESOURCE_LOCK (
  31. LOCK_RESOURCE varchar(50) NOT NULL,
  32. OWNER varchar (50) NOT NULL,
  33. TIMESTAMP numeric (18, 0) NOT NULL
  34. );
  35. -------------------------------------------------------------------------------
  36. --$201-- indices create begin
  37. -------------------------------------------------------------------------------
  38. -------------------------------------------------------------------------------
  39. --$202-- primary keys add begin
  40. -------------------------------------------------------------------------------
  41. ALTER TABLE NC_RESOURCE_LOCK ADD CONSTRAINT PR_RESOURCE_LOCK PRIMARY KEY (LOCK_RESOURCE);
  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(906,'build no.');
  55. -------------------------------------------------------------------------------
  56. --$250-- backup drop begin
  57. -------------------------------------------------------------------------------
  58. -------------------------------------------------------------------------------
  59. --$260-- end sql by function
  60. -------------------------------------------------------------------------------
  61. -- END NC906_UPDATE_Hsql.SQL * DO NOT EDIT *
  62. -------------------------------------------------------------------------------