Commit 82d22da1 authored by Tiger Watson's avatar Tiger Watson

Merge branch '349549-inconsistent-schema-index' into 'master'

Resolve "Inconsistent schema - index_suggestions_on_note_id index"

See merge request gitlab-org/gitlab!77769
parents f914bc29 9fdadcec
# 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