ANS3_UPDATE_Msql.sql 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --
  2. -- Licensed Materials - Property of IBM
  3. --
  4. -- BI and PM: ANS
  5. --
  6. -- (c) Copyright IBM Corp. 2016.
  7. --
  8. -- US Government Users Restricted RigANS - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. --
  10. -------------------------------------------------------------------------------
  11. -- ANS3_UPDATE_Msql.SQL *DO NOT EDIT* Data Store Version: 3
  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. DROP INDEX ANN_CONTEXT.I_NN_CTXT_COMPID
  35. go
  36. ALTER TABLE ANN_CONTEXT ALTER COLUMN compID VARCHAR(512)
  37. go
  38. CREATE INDEX I_NN_CTXT_COMPID ON ANN_CONTEXT (compID)
  39. go
  40. -------------------------------------------------------------------------------
  41. --$210-- views create begin
  42. -------------------------------------------------------------------------------
  43. -------------------------------------------------------------------------------
  44. --$220-- server data inserts begin
  45. -------------------------------------------------------------------------------
  46. -------------------------------------------------------------------------------
  47. --$230-- restore inserts begin
  48. -------------------------------------------------------------------------------
  49. -------------------------------------------------------------------------------
  50. --$250-- backup drop begin
  51. -------------------------------------------------------------------------------
  52. -------------------------------------------------------------------------------
  53. --$260-- end sql by function
  54. -------------------------------------------------------------------------------
  55. -- END ANS3_UPDATE_Msql.SQL * DO NOT EDIT *
  56. -------------------------------------------------------------------------------