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

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

class AddIndexUpdatedAtToBulkImportBatchTrackers < Gitlab::Database::Migration[2.2]
  disable_ddl_transaction!
  milestone '16.7'

  INDEX = 'index_bulk_import_batch_trackers_on_tracker_id_and_updated_at'

  def up
    add_concurrent_index :bulk_import_batch_trackers,
      [:tracker_id, :updated_at],
      name: INDEX
  end

  def down
    remove_concurrent_index_by_name :bulk_import_batch_trackers, name: INDEX
  end
end