Skip to content
Snippets Groups Projects
Verified Commit c5e130a1 authored by Gregory Havenga's avatar Gregory Havenga :two: Committed by GitLab
Browse files

Merge branch 'morefice/set-sharding-key-ci-builds' into 'master'

parents 43c42ba3 55f8beb8
No related branches found
No related tags found
1 merge request!165181Set sharding key for ci_builds
Pipeline #1443001449 passed with warnings
......@@ -12,4 +12,5 @@ description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/046b28312704f3131e72dcd2dbdacc5264d4aa62
milestone: '8.0'
gitlab_schema: gitlab_ci
sharding_key_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/458488
sharding_key:
project_id: projects
......@@ -112,6 +112,8 @@
"If this is a foreign key referencing the specified table #{referenced_table_name} " \
"then you must remove it from allowed_to_be_missing_foreign_key"
else
next if Gitlab::Database::PostgresPartition.partition_exists?(table_name)
expect(has_foreign_key?(table_name, column_name, to_table_name: referenced_table_name)).to eq(true),
"Missing a foreign key constraint for `#{table_name}.#{column_name}` " \
"referencing #{referenced_table_name}. " \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment