Add sharding keys for continuous_integration
Add sharding keys for feature category `continuous_integration`. These tables have been identified as [cell local tables](https://docs.gitlab.com/ee/development/database/multiple_databases.html#guidelines-on-choosing-between-gitlab_main_cell-and-gitlab_main_clusterwide-schema). All cell local tables require a [sharding key](https://docs.gitlab.com/ee/development/database/multiple_databases.html#defining-a-sharding-key-for-all-cell-local-tables). A sharding key has been automatically selected for these tables. The sharding key was chosen because it is a `NOT NULL` column referencing either `projects` or `namespaces`. Additionally, `gitlab_schema` has been set to `gitlab_main_cell` for any tables didn't use this schema already. For these tables we have also added `allow_cross_joins`, `allow_cross_transactions` and `allow_cross_foreign_keys`. These will silence any existing violations, allowing the pipeline to pass without requiring further changes. In the future, we'll remove these `allow_...` statements and fix any violations as they arise. You can read more about this in the [documentation for multiple databases](https://docs.gitlab.com/ee/development/database/multiple_databases.html) We have assigned a random backend engineer from ~"group::pipeline execution" to review these changes. Please confirm that each table should indeed be cell local, and that the selected column is an appropriate sharding key. When you are finished, please request a review from the database maintainer suggested by Danger. If you have any questions or concerns, reach out to @tigerwnz or @DylanGriffith. This change was generated by [gitlab-housekeeper](https://gitlab.com/gitlab-org/gitlab/-/tree/master/gems/gitlab-housekeeper) Changelog: other
显示
- db/docs/ci_job_token_project_scope_links.yml 6 个添加, 4 个删除db/docs/ci_job_token_project_scope_links.yml
- db/docs/ci_namespace_monthly_usages.yml 2 个添加, 0 个删除db/docs/ci_namespace_monthly_usages.yml
- db/docs/ci_pending_builds.yml 2 个添加, 0 个删除db/docs/ci_pending_builds.yml
- db/docs/ci_pipeline_metadata.yml 2 个添加, 0 个删除db/docs/ci_pipeline_metadata.yml
- db/docs/ci_project_monthly_usages.yml 2 个添加, 0 个删除db/docs/ci_project_monthly_usages.yml
- db/docs/ci_refs.yml 2 个添加, 0 个删除db/docs/ci_refs.yml
- db/docs/ci_running_builds.yml 8 个添加, 7 个删除db/docs/ci_running_builds.yml
- db/docs/ci_sources_projects.yml 2 个添加, 0 个删除db/docs/ci_sources_projects.yml
- db/docs/ci_subscriptions_projects.yml 2 个添加, 0 个删除db/docs/ci_subscriptions_projects.yml
- db/docs/external_pull_requests.yml 2 个添加, 0 个删除db/docs/external_pull_requests.yml
- db/docs/merge_trains.yml 11 个添加, 2 个删除db/docs/merge_trains.yml
- db/docs/namespace_ci_cd_settings.yml 9 个添加, 1 个删除db/docs/namespace_ci_cd_settings.yml
- db/docs/p_ci_builds_metadata.yml 2 个添加, 0 个删除db/docs/p_ci_builds_metadata.yml
- db/docs/project_ci_cd_settings.yml 2 个添加, 0 个删除db/docs/project_ci_cd_settings.yml
想要评论请 注册 或 登录