提交 df6a2d42 编写于 作者: G Grzegorz Bizon

Add temporary build stage priority partial index

上级 c9dc5111
class AddTmpStagePriorityIndexToCiBuilds < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index(:ci_builds, [:stage_id, :stage_idx],
where: 'stage_idx IS NOT NULL', name: 'tmp_build_stage_priority_index')
end
def down
remove_concurrent_index_by_name(:ci_builds, 'tmp_build_stage_priority_index')
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册