Welcome to mirror list, hosted at ThFree Co, Russian Federation.

extra_indexes.rb « validators « schema_validation « database « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 023052459ff3f8db0376f729fdb7f348586553c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Gitlab
  module Database
    module SchemaValidation
      module Validators
        class ExtraIndexes < BaseValidator
          def execute
            database.indexes.filter_map do |index|
              next if structure_sql.index_exists?(index.name)

              build_inconsistency(index)
            end
          end
        end
      end
    end
  end
end