dropTables.sql 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 tables from the Federation StateStore in SQLServer
  19. USE [FederationStateStore]
  20. GO
  21. IF OBJECT_ID ( '[sp_deregisterSubCluster]', 'U' ) IS NOT NULL
  22. DROP TABLE [sp_deregisterSubCluster];
  23. GO
  24. IF OBJECT_ID ( '[membership]', 'U' ) IS NOT NULL
  25. DROP TABLE [membership];
  26. GO
  27. IF OBJECT_ID ( '[policies]', 'U' ) IS NOT NULL
  28. DROP TABLE [policies];
  29. GO
  30. IF OBJECT_ID ( '[applicationsHomeSubCluster]', 'U' ) IS NOT NULL
  31. DROP TABLE [applicationsHomeSubCluster];
  32. GO
  33. IF OBJECT_ID ( '[reservationsHomeSubCluster]', 'U' ) IS NOT NULL
  34. DROP TABLE [reservationsHomeSubCluster];
  35. GO
  36. IF OBJECT_ID ( '[masterKeys]', 'U' ) IS NOT NULL
  37. DROP TABLE [masterKeys];
  38. GO
  39. IF OBJECT_ID ( '[delegationTokens]', 'U' ) IS NOT NULL
  40. DROP TABLE [delegationTokens];
  41. GO
  42. IF OBJECT_ID ( '[sequenceTable]', 'U' ) IS NOT NULL
  43. DROP TABLE [sequenceTable];
  44. GO
  45. IF OBJECT_ID ( '[versions]', 'U' ) IS NOT NULL
  46. DROP TABLE [versions];
  47. GO