Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20221014190040_drop_notes_note_trigram_index.rb')
-rw-r--r--db/migrate/20221014190040_drop_notes_note_trigram_index.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20221014190040_drop_notes_note_trigram_index.rb b/db/migrate/20221014190040_drop_notes_note_trigram_index.rb
new file mode 100644
index 00000000000..efa35b24d98
--- /dev/null
+++ b/db/migrate/20221014190040_drop_notes_note_trigram_index.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class DropNotesNoteTrigramIndex < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = 'index_notes_on_note_gin_trigram'
+
+ disable_ddl_transaction!
+
+ def up
+ remove_concurrent_index_by_name :notes, INDEX_NAME
+ end
+
+ def down
+ # no-op
+ # we never want to add this index back since it doesn't exist in production
+ # we are only using this migration to cleanup other environments where this index does exist
+ end
+end