Commit 782c4100 authored by Adam Hegyi's avatar Adam Hegyi

Merge branch 'add-index-resourcegroup-status-commitid' into 'master'

Add index resource_group_status_commit_id on ci_builds

See merge request gitlab-org/gitlab!70279
parents 803b7983 aa8ee780
# frozen_string_literal: true
class PrepareIndexResourceGroupStatusCommitIdForCiBuilds < Gitlab::Database::Migration[1.0]
INDEX_NAME = 'index_ci_builds_on_resource_group_and_status_and_commit_id'
def up
prepare_async_index :ci_builds, [:resource_group_id, :status, :commit_id],
where: 'resource_group_id IS NOT NULL',
name: INDEX_NAME
end
def down
unprepare_async_index_by_name :ci_builds, INDEX_NAME
end
end
cc8f1bea8c722dfa06fc23a3dbaaacd7f1b7c5f7b529ebfab34b7c7c38e5db79
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment