debian-mirror-gitlab/db/migrate/20220201205300_remove_index_for_vulnerability_occurrences.rb
2022-04-04 11:22:00 +05:30

18 lines
386 B
Ruby

# 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