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

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

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

  TABLE_NAME = :namespaces
  INDEX_NAME = :index_btree_namespaces_traversal_ids

  def up
    remove_concurrent_index_by_name TABLE_NAME, INDEX_NAME
  end

  def down
    add_concurrent_index TABLE_NAME, :traversal_ids, name: INDEX_NAME
  end
end