diff --git a/db/docs/vulnerability_exports.yml b/db/docs/vulnerability_exports.yml index 823ec9ac2523f75245e543b45d78b93762b8aa76..4a975fa67f5f0534d080cf693c22bfa819fa78e2 100644 --- a/db/docs/vulnerability_exports.yml +++ b/db/docs/vulnerability_exports.yml @@ -7,4 +7,13 @@ feature_categories: description: Stores metadata about exported Vulnerabilities CSV files introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27196 milestone: '13.0' -gitlab_schema: gitlab_main +gitlab_schema: gitlab_main_cell +allow_cross_joins: +- gitlab_main_clusterwide +allow_cross_transactions: +- gitlab_main_clusterwide +allow_cross_foreign_keys: +- gitlab_main_clusterwide +sharding_key: + project_id: projects + group_id: namespaces diff --git a/spec/lib/gitlab/database/sharding_key_spec.rb b/spec/lib/gitlab/database/sharding_key_spec.rb index 1fdbe9bf087cb7b3fa62e00015a345dd6a76cb76..566ed4f23b86b9b46602dac866ab65df6cd1d49b 100644 --- a/spec/lib/gitlab/database/sharding_key_spec.rb +++ b/spec/lib/gitlab/database/sharding_key_spec.rb @@ -38,7 +38,8 @@ 'sprints.group_id', 'subscription_add_on_purchases.namespace_id', # https://gitlab.com/gitlab-org/gitlab/-/issues/444338 'temp_notes_backup.project_id', # https://gitlab.com/gitlab-org/gitlab/-/issues/443667' - *['todos.project_id', 'todos.group_id'] + *['todos.project_id', 'todos.group_id'], + *['vulnerability_exports.project_id', 'vulnerability_exports.group_id'] ] end