summaryrefslogtreecommitdiff
path: root/db/post_migrate/20200310135818_remove_temporary_promoted_notes_index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20200310135818_remove_temporary_promoted_notes_index.rb')
-rw-r--r--db/post_migrate/20200310135818_remove_temporary_promoted_notes_index.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/db/post_migrate/20200310135818_remove_temporary_promoted_notes_index.rb b/db/post_migrate/20200310135818_remove_temporary_promoted_notes_index.rb
deleted file mode 100644
index 0b9bbf1e17b..00000000000
--- a/db/post_migrate/20200310135818_remove_temporary_promoted_notes_index.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# frozen_string_literal: true
-
-# Removes temporary index to fix orphan promoted issues.
-# For more information check: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23916
-class RemoveTemporaryPromotedNotesIndex < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- remove_concurrent_index_by_name :notes, 'tmp_idx_on_promoted_notes'
- end
-
- def down
- add_concurrent_index :notes,
- :note,
- where: "noteable_type = 'Issue' AND system IS TRUE AND note LIKE 'promoted to epic%'",
- name: 'tmp_idx_on_promoted_notes'
- end
-end