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

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

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

  INDEX_NAME = 'index_projects_on_id_where_build_timeout_geq_than_2629746'

  def up
    remove_concurrent_index_by_name :projects, name: INDEX_NAME
  end

  def down
    add_concurrent_index :projects, :id, where: 'build_timeout >= 2629746', name: INDEX_NAME
  end
end