mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-16 15:57:22 +00:00
20 lines
473 B
Ruby
20 lines
473 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DropIdxVulnerabilityOccurrencesDedup < Gitlab::Database::Migration[2.2]
|
|
milestone '17.4'
|
|
|
|
disable_ddl_transaction!
|
|
|
|
TABLE = :vulnerability_occurrences
|
|
INDEX_NAME = 'index_vulnerability_occurrences_deduplication'
|
|
COLUMNS = %i[project_id report_type project_fingerprint]
|
|
|
|
def up
|
|
remove_concurrent_index TABLE, COLUMNS, name: INDEX_NAME
|
|
end
|
|
|
|
def down
|
|
add_concurrent_index TABLE, COLUMNS, name: INDEX_NAME
|
|
end
|
|
end
|