dropStoreProcedures.sql 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. -- Script to drop all the stored procedures for the Federation StateStore in SQLServer
  19. USE [FederationStateStore]
  20. GO
  21. IF OBJECT_ID ('[sp_addApplicationHomeSubCluster]', 'P') IS NOT NULL
  22. DROP PROCEDURE [sp_addApplicationHomeSubCluster];
  23. GO
  24. IF OBJECT_ID ('[sp_updateApplicationHomeSubCluster]', 'P') IS NOT NULL
  25. DROP PROCEDURE [sp_updateApplicationHomeSubCluster];
  26. GO
  27. IF OBJECT_ID ('[sp_getApplicationsHomeSubCluster]', 'P') IS NOT NULL
  28. DROP PROCEDURE [sp_getApplicationsHomeSubCluster];
  29. GO
  30. IF OBJECT_ID ('[sp_getApplicationHomeSubCluster]', 'P') IS NOT NULL
  31. DROP PROCEDURE [sp_getApplicationHomeSubCluster];
  32. GO
  33. IF OBJECT_ID ('[sp_deleteApplicationHomeSubCluster]', 'P') IS NOT NULL
  34. DROP PROCEDURE [sp_deleteApplicationHomeSubCluster];
  35. GO
  36. IF OBJECT_ID ('[sp_registerSubCluster]', 'P') IS NOT NULL
  37. DROP PROCEDURE [sp_registerSubCluster];
  38. GO
  39. IF OBJECT_ID ('[sp_getSubClusters]', 'P') IS NOT NULL
  40. DROP PROCEDURE [sp_getSubClusters];
  41. GO
  42. IF OBJECT_ID ('[sp_getSubCluster]', 'P') IS NOT NULL
  43. DROP PROCEDURE [sp_getSubCluster];
  44. GO
  45. IF OBJECT_ID ('[sp_subClusterHeartbeat]', 'P') IS NOT NULL
  46. DROP PROCEDURE [sp_subClusterHeartbeat];
  47. GO
  48. IF OBJECT_ID ('[sp_deregisterSubCluster]', 'P') IS NOT NULL
  49. DROP PROCEDURE [sp_deregisterSubCluster];
  50. GO
  51. IF OBJECT_ID ('[sp_setPolicyConfiguration]', 'P') IS NOT NULL
  52. DROP PROCEDURE [sp_setPolicyConfiguration];
  53. GO
  54. IF OBJECT_ID ('[sp_getPolicyConfiguration]', 'P') IS NOT NULL
  55. DROP PROCEDURE [sp_getPolicyConfiguration];
  56. GO
  57. IF OBJECT_ID ('[sp_getPoliciesConfigurations]', 'P') IS NOT NULL
  58. DROP PROCEDURE [sp_getPoliciesConfigurations];
  59. GO
  60. IF OBJECT_ID ('[sp_addReservationHomeSubCluster]', 'P') IS NOT NULL
  61. DROP PROCEDURE [sp_addReservationHomeSubCluster];
  62. GO
  63. IF OBJECT_ID ('[sp_updateReservationHomeSubCluster]', 'P') IS NOT NULL
  64. DROP PROCEDURE [sp_updateReservationHomeSubCluster];
  65. GO
  66. IF OBJECT_ID ('[sp_getReservationsHomeSubCluster]', 'P') IS NOT NULL
  67. DROP PROCEDURE [sp_getReservationsHomeSubCluster];
  68. GO
  69. IF OBJECT_ID ('[sp_getReservationHomeSubCluster]', 'P') IS NOT NULL
  70. DROP PROCEDURE [sp_getReservationHomeSubCluster];
  71. GO
  72. IF OBJECT_ID ('[sp_deleteReservationHomeSubCluster]', 'P') IS NOT NULL
  73. DROP PROCEDURE [sp_deleteReservationHomeSubCluster];
  74. GO
  75. IF OBJECT_ID ('[sp_addMasterKey]', 'P') IS NOT NULL
  76. DROP PROCEDURE [sp_addMasterKey];
  77. GO
  78. IF OBJECT_ID ('[sp_getMasterKey]', 'P') IS NOT NULL
  79. DROP PROCEDURE [sp_getMasterKey];
  80. GO
  81. IF OBJECT_ID ('[sp_deleteMasterKey]', 'P') IS NOT NULL
  82. DROP PROCEDURE [sp_deleteMasterKey];
  83. GO
  84. IF OBJECT_ID ('[sp_addDelegationToken]', 'P') IS NOT NULL
  85. DROP PROCEDURE [sp_addDelegationToken];
  86. GO
  87. IF OBJECT_ID ('[sp_getDelegationToken]', 'P') IS NOT NULL
  88. DROP PROCEDURE [sp_getDelegationToken];
  89. GO
  90. IF OBJECT_ID ('[sp_updateDelegationToken]', 'P') IS NOT NULL
  91. DROP PROCEDURE [sp_updateDelegationToken];
  92. GO
  93. IF OBJECT_ID ('[sp_deleteDelegationToken]', 'P') IS NOT NULL
  94. DROP PROCEDURE [sp_deleteDelegationToken];
  95. GO
  96. IF OBJECT_ID ('[sp_storeVersion]', 'P') IS NOT NULL
  97. DROP PROCEDURE [sp_storeVersion];
  98. GO
  99. IF OBJECT_ID ('[sp_getVersion]', 'P') IS NOT NULL
  100. DROP PROCEDURE [sp_getVersion];
  101. GO