Skip to content
Snippets Groups Projects
Commit b8130f74 authored by Luke Duncalfe's avatar Luke Duncalfe 🔴
Browse files

Revert index on web_hook_logs

parent 410e2262
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
class RemoveWebHookLogIndexOnWebHookIdAndResponseStatus < Gitlab::Database::Migration[2.2]
include Gitlab::Database::PartitioningMigrationHelpers
milestone '17.4'
TABLE_NAME = :web_hook_logs
COLUMN_NAMES = [:web_hook_id, :response_status]
INDEX_NAME = 'web_hook_logs_on_web_hook_id_and_response_status'
# Reverting the index added in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/151048
def up
unprepare_partitioned_async_index(TABLE_NAME, COLUMN_NAMES, name: INDEX_NAME)
end
def down
prepare_partitioned_async_index(TABLE_NAME, COLUMN_NAMES, name: INDEX_NAME)
end
end
b860e598cc545ea259380cb3f19f999fa478b26575ae28275574ac3c7c6ffddd
\ 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