Commit 8dd74f5e authored by dfrazao-gitlab's avatar dfrazao-gitlab

Inconsistent schema - index

Add index_vulnerability_occurrences_deduplication index back

Changelog: fixed

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/349549
parent 82253cc6
# 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