diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-06 12:08:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-06 12:08:18 +0300 |
commit | eb4b72630a9f479f33858fc9011e18666da3bbba (patch) | |
tree | ce57895d1d9291b9e76dd28fe7c95d776bc54a10 /spec/db | |
parent | c5d8b7e6909eb0478c4b2165689004051cdc7ac5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/db')
-rw-r--r-- | spec/db/schema_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/db/schema_spec.rb b/spec/db/schema_spec.rb index e3e08d3b653..e4a0ccdb57f 100644 --- a/spec/db/schema_spec.rb +++ b/spec/db/schema_spec.rb @@ -11,7 +11,8 @@ RSpec.describe 'Database schema', feature_category: :database do IGNORED_INDEXES_ON_FKS = { slack_integrations_scopes: %w[slack_api_scope_id], - p_ci_builds_metadata: %w[partition_id] # composable FK, the columns are reversed in the index definition + p_ci_builds_metadata: %w[partition_id], # composable FK, the columns are reversed in the index definition + p_ci_runner_machine_builds: %w[partition_id] # composable FK, the columns are reversed in the index definition }.with_indifferent_access.freeze TABLE_PARTITIONS = %w[ci_builds_metadata].freeze @@ -319,7 +320,7 @@ RSpec.describe 'Database schema', feature_category: :database do # position. Using PARTITIONABLE_MODELS instead of iterating tables since when partitioning existing tables, # the routing table only gets created after the PK has already been created, which would be too late for a check. - skip_tables = %w[Ci::RunnerMachineBuild] + skip_tables = %w[] partitionable_models = Ci::Partitionable::Testing::PARTITIONABLE_MODELS (partitionable_models - skip_tables).each do |klass| model = klass.safe_constantize |