Skip to content
Snippets Groups Projects
Unverified Commit 2d8bbb5f authored by Adam Hegyi's avatar Adam Hegyi Committed by GitLab
Browse files

Merge branch...

Merge branch '464108-prepare_partitioned_async_index-on-merge_request_diff_commits_b5377a7a34' into 'master' 

Add async index on merge_request_diff_commits_b5377a7a34

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167814



Merged-by: default avatarAdam Hegyi <ahegyi@gitlab.com>
Approved-by: default avatarKrasimir Angelov <kangelov@gitlab.com>
Approved-by: default avatarAdam Hegyi <ahegyi@gitlab.com>
Co-authored-by: default avatarKerri Miller <kerrizor@kerrizor.com>
parents 476da48a b4a3ad68
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
class PreparePartitionedAsyncIndexMergeRequestDiffCommitsB5377a7a34 < Gitlab::Database::Migration[2.2]
include Gitlab::Database::PartitioningMigrationHelpers
milestone '17.5'
disable_ddl_transaction!
INDEX_NAME = 'index_merge_request_diff_commits_b5377a7a34_on_project_id'
def up
prepare_partitioned_async_index :merge_request_diff_commits_b5377a7a34, :project_id, name: INDEX_NAME
end
def down
unprepare_partitioned_async_index_by_name :merge_request_diff_commits_b5377a7a34, INDEX_NAME
end
end
1f1f98b9673af082dba115856bf9b045033a5acd37b0ba19ea3dac043fa07df5
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment