Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230404132544_prepare_async_index_for_override_uuids_logic.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 59c2bdf9470155dbffef40f8b1ae607f4c332dea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class PrepareAsyncIndexForOverrideUuidsLogic < Gitlab::Database::Migration[2.1]
  disable_ddl_transaction!

  INDEX_NAME = 'index_vulnerability_occurrences_for_override_uuids_logic'

  def up
    prepare_async_index :vulnerability_occurrences, [:project_id, :report_type, :location_fingerprint], name: INDEX_NAME
  end

  def down
    unprepare_async_index_by_name :vulnerability_occurrences, INDEX_NAME
  end
end