123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- /*
- * SonarQube
- * Copyright (C) 2009-2022 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
- package org.sonar.db.version;
-
- import java.util.Set;
-
- public final class SqTables {
-
- /**
- * List of all the tables.
- * This list is hardcoded because we didn't succeed in using java.sql.DatabaseMetaData#getTables() in the same way
- * for all the supported databases, particularly due to Oracle results.
- */
- public static final Set<String> TABLES = Set.of(
- "active_rules",
- "active_rule_parameters",
- "alm_settings",
- "alm_pats",
- "analysis_properties",
- "app_branch_project_branch",
- "app_projects",
- "audits",
- "ce_activity",
- "ce_queue",
- "ce_task_characteristics",
- "ce_task_input",
- "ce_task_message",
- "ce_scanner_context",
- "components",
- "default_qprofiles",
- "deprecated_rule_keys",
- "duplications_index",
- "es_queue",
- "events",
- "event_component_changes",
- "file_sources",
- "groups",
- "groups_users",
- "group_roles",
- "internal_component_props",
- "internal_properties",
- "issues",
- "issue_changes",
- "live_measures",
- "metrics",
- "new_code_periods",
- "notifications",
- "org_qprofiles",
- "permission_templates",
- "perm_templates_users",
- "perm_templates_groups",
- "perm_tpl_characteristics",
- "plugins",
- "portfolios",
- "portfolio_projects",
- "portfolio_proj_branches",
- "portfolio_references",
- "projects",
- "project_alm_settings",
- "project_badge_token",
- "project_branches",
- "project_links",
- "project_mappings",
- "project_measures",
- "project_qprofiles",
- "properties",
- "qprofile_changes",
- "qprofile_edit_groups",
- "qprofile_edit_users",
- "quality_gates",
- "qgate_user_permissions",
- "qgate_group_permissions",
- "quality_gate_conditions",
- "saml_message_ids",
- "rules",
- "rules_metadata",
- "rules_parameters",
- "rules_profiles",
- "rule_repositories",
- "scanner_analysis_cache",
- "schema_migrations",
- "session_tokens",
- "snapshots",
- "users",
- "user_dismissed_messages",
- "user_roles",
- "user_tokens",
- "webhooks",
- "webhook_deliveries");
-
- private SqTables() {
- // prevents instantiation
- }
- }
|