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

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

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

  TABLE_NAME = :ci_builds
  COLUMN_NAME = :token_encrypted
  INDEX_NAME = :index_ci_builds_on_token_encrypted

  def up
    prepare_async_index_removal(TABLE_NAME, COLUMN_NAME, name: INDEX_NAME)
  end

  def down
    unprepare_async_index(TABLE_NAME, COLUMN_NAME, name: INDEX_NAME)
  end
end