Commit 40624225 authored by Andreas Brandl's avatar Andreas Brandl

Merge branch '349549-inconsistent-schema-index-2' into 'master'

Resolve "Inconsistent schema - index_vulnerability_occurrences_deduplication index"

See merge request gitlab-org/gitlab!77823
parents aed836d7 8dd74f5e
# frozen_string_literal: true
class AddIdxVulnerabilityOccurrencesDedupAgain < Gitlab::Database::Migration[1.0]
TABLE = :vulnerability_occurrences
INDEX_NAME = 'index_vulnerability_occurrences_deduplication'
COLUMNS = %i[project_id report_type project_fingerprint]
disable_ddl_transaction!
def up
add_concurrent_index TABLE, COLUMNS, name: INDEX_NAME
end
def down
# nothing to do here
end
end
fee092680e22e579ea51f776d11bbfd6a49b936e4ab776760a153ce613e7a0cd
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment