Skip to content
Snippets Groups Projects
Commit a9c71cfb authored by Adam Hegyi's avatar Adam Hegyi
Browse files

Remove unnecessary index on events async

This change removes the
index_on_events_to_improve_contribution_analytics_performance index
asynchronously.

Changelog: removed
parent 8a141688
No related branches found
No related tags found
1 merge request!122368Remove unnecessary index from events table
# frozen_string_literal: true
class DropUnnecessaryAsyncIndexFromEvents < Gitlab::Database::Migration[2.1]
INDEX_NAME = 'index_on_events_to_improve_contribution_analytics_performance'
def up
prepare_async_index_removal :events, %i[project_id target_type action created_at author_id id], name: INDEX_NAME
end
def down
unprepare_async_index :events, %i[project_id target_type action created_at author_id id], name: INDEX_NAME
end
end
4dcfbb2dc0168ab14a30e27d655910a56c2ad2585a4769ebceb22077dd8dd839
\ 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