blob: 1b2f156ce3ce8d244f66b3fb05585dbec00d268a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
class AddIndexToVulnerabilityFindingSignaturesOnSignatureSha < Gitlab::Database::Migration[2.1]
INDEX_NAME = 'index_vulnerability_finding_signatures_on_signature_sha'
disable_ddl_transaction!
def up
add_concurrent_index :vulnerability_finding_signatures, :signature_sha, name: INDEX_NAME
end
def down
remove_concurrent_index_by_name :vulnerability_finding_signatures, name: INDEX_NAME
end
end
|