blob: f1c9383487dc25c92a2630aaeec3cccd3d8013cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
module Gitlab
module Database
module SchemaValidation
module Validators
class MissingTables < BaseValidator
ERROR_MESSAGE = "The table %s is missing from the database"
def execute
structure_sql.tables.filter_map do |structure_sql_table|
next if database.table_exists?(structure_sql_table.name)
build_inconsistency(self.class, structure_sql_table, nil)
end
end
end
end
end
end
end
|