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/20240104142200_add_index_sent_notifications_on_issue_email_participant_id.rb')
-rw-r--r--db/migrate/20240104142200_add_index_sent_notifications_on_issue_email_participant_id.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20240104142200_add_index_sent_notifications_on_issue_email_participant_id.rb b/db/migrate/20240104142200_add_index_sent_notifications_on_issue_email_participant_id.rb
new file mode 100644
index 00000000000..c9b75529470
--- /dev/null
+++ b/db/migrate/20240104142200_add_index_sent_notifications_on_issue_email_participant_id.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddIndexSentNotificationsOnIssueEmailParticipantId < Gitlab::Database::Migration[2.2]
+ disable_ddl_transaction!
+
+ milestone '16.9'
+
+ INDEX_NAME = 'index_sent_notifications_on_issue_email_participant_id'
+
+ def up
+ add_concurrent_index :sent_notifications, :issue_email_participant_id, name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :sent_notifications, INDEX_NAME
+ end
+end