blob: facf9135dfb8c8279d2d3e0c82d8a0b08ccba2c1 (
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 Schema
module Validation
module Validators
class MissingTables < Base
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
|