diff options
Diffstat (limited to 'spec/db/schema_spec.rb')
-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 4ec6d3ad4f5..c22292cb82c 100644 --- a/spec/db/schema_spec.rb +++ b/spec/db/schema_spec.rb @@ -124,7 +124,7 @@ RSpec.describe 'Database schema', feature_category: :database do }.with_indifferent_access.freeze context 'for table' do - Gitlab::Database::EachDatabase.each_database_connection do |connection, _| + Gitlab::Database::EachDatabase.each_connection do |connection, _| schemas_for_connection = Gitlab::Database.gitlab_schemas_for_connection(connection) (connection.tables - TABLE_PARTITIONS).sort.each do |table| table_schema = Gitlab::Database::GitlabSchema.table_schema(table) @@ -244,6 +244,7 @@ RSpec.describe 'Database schema', feature_category: :database do "GeoNodeStatus" => %w[status], "Operations::FeatureFlagScope" => %w[strategies], "Operations::FeatureFlags::Strategy" => %w[parameters], + "Organizations::OrganizationSetting" => %w[settings], # Custom validations "Packages::Composer::Metadatum" => %w[composer_json], "RawUsageData" => %w[payload], # Usage data payload changes often, we cannot use one schema "Releases::Evidence" => %w[summary], @@ -299,7 +300,7 @@ RSpec.describe 'Database schema', feature_category: :database do context 'primary keys' do it 'expects every table to have a primary key defined' do - Gitlab::Database::EachDatabase.each_database_connection do |connection, _| + Gitlab::Database::EachDatabase.each_connection do |connection, _| schemas_for_connection = Gitlab::Database.gitlab_schemas_for_connection(connection) problematic_tables = connection.tables.select do |table| |