You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SqTables.java 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2022 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package org.sonar.db.version;
  21. import java.util.Set;
  22. public final class SqTables {
  23. /**
  24. * List of all the tables.
  25. * This list is hardcoded because we didn't succeed in using java.sql.DatabaseMetaData#getTables() in the same way
  26. * for all the supported databases, particularly due to Oracle results.
  27. */
  28. public static final Set<String> TABLES = Set.of(
  29. "active_rules",
  30. "active_rule_parameters",
  31. "alm_settings",
  32. "alm_pats",
  33. "analysis_properties",
  34. "app_branch_project_branch",
  35. "app_projects",
  36. "audits",
  37. "ce_activity",
  38. "ce_queue",
  39. "ce_task_characteristics",
  40. "ce_task_input",
  41. "ce_task_message",
  42. "ce_scanner_context",
  43. "components",
  44. "default_qprofiles",
  45. "deprecated_rule_keys",
  46. "duplications_index",
  47. "es_queue",
  48. "events",
  49. "event_component_changes",
  50. "file_sources",
  51. "groups",
  52. "groups_users",
  53. "group_roles",
  54. "internal_component_props",
  55. "internal_properties",
  56. "issues",
  57. "issue_changes",
  58. "live_measures",
  59. "metrics",
  60. "new_code_periods",
  61. "notifications",
  62. "org_qprofiles",
  63. "permission_templates",
  64. "perm_templates_users",
  65. "perm_templates_groups",
  66. "perm_tpl_characteristics",
  67. "plugins",
  68. "portfolios",
  69. "portfolio_projects",
  70. "portfolio_proj_branches",
  71. "portfolio_references",
  72. "projects",
  73. "project_alm_settings",
  74. "project_badge_token",
  75. "project_branches",
  76. "project_links",
  77. "project_mappings",
  78. "project_measures",
  79. "project_qprofiles",
  80. "properties",
  81. "qprofile_changes",
  82. "qprofile_edit_groups",
  83. "qprofile_edit_users",
  84. "quality_gates",
  85. "qgate_user_permissions",
  86. "qgate_group_permissions",
  87. "quality_gate_conditions",
  88. "saml_message_ids",
  89. "rules",
  90. "rules_metadata",
  91. "rules_parameters",
  92. "rules_profiles",
  93. "rule_repositories",
  94. "scanner_analysis_cache",
  95. "schema_migrations",
  96. "session_tokens",
  97. "snapshots",
  98. "users",
  99. "user_dismissed_messages",
  100. "user_roles",
  101. "user_tokens",
  102. "webhooks",
  103. "webhook_deliveries");
  104. private SqTables() {
  105. // prevents instantiation
  106. }
  107. }