Commit 9fdadcec authored by dfrazao-gitlab's avatar dfrazao-gitlab

Inconsistent schema - index

Remove index_suggestions_on_note_id index

Changelog: fixed

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/349549
parent c6db9521
# frozen_string_literal: true
class RemoveNoteIdIndex < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
TABLE = :suggestions
INDEX_NAME = 'index_suggestions_on_note_id'
def up
remove_concurrent_index_by_name TABLE, INDEX_NAME
end
def down
add_concurrent_index TABLE, :note_id, name: INDEX_NAME
end
end
72639ba84675a6687864ef4cb6f02d0429124d7deb9ce9f3c8e255591e2f0a8d
\ 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