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

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

class PrepareRemovalIndexDeploymentsOnIdWhereClusterIdPresent < Gitlab::Database::Migration[2.1]
  INDEX_NAME = 'index_deployments_on_id_where_cluster_id_present'

  # TODO: Index to be destroyed synchronously in https://gitlab.com/gitlab-org/gitlab/-/issues/402510
  def up
    prepare_async_index_removal :deployments, :id, name: INDEX_NAME
  end

  def down
    unprepare_async_index :deployments, :id, name: INDEX_NAME
  end
end