blob: 89591d14aae552c6cd3e785c6c345d1b2d4fb788 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class RemoveIndexForVulnerabilityOccurrences < Gitlab::Database::Migration[1.0]
INDEX_NAME = 'index_vulnerability_occurrences_on_unique_keys'
disable_ddl_transaction!
def up
remove_concurrent_index_by_name :vulnerability_occurrences, INDEX_NAME
end
def down
# no-op
# The index is UNIQUE so we cannot add it back again
end
end
|