Skip to content
Snippets Groups Projects
Unverified Commit b4a3ad68 authored by Kerri Miller's avatar Kerri Miller Committed by GitLab
Browse files

Add async index to partition table

Changelog: added
parent 862b9787
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