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/post_migrate/20220808072054_prepare_index_removal_security_findings.rb')
-rw-r--r--db/post_migrate/20220808072054_prepare_index_removal_security_findings.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/post_migrate/20220808072054_prepare_index_removal_security_findings.rb b/db/post_migrate/20220808072054_prepare_index_removal_security_findings.rb
new file mode 100644
index 00000000000..eb4158fa9dd
--- /dev/null
+++ b/db/post_migrate/20220808072054_prepare_index_removal_security_findings.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class PrepareIndexRemovalSecurityFindings < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = :index_on_security_findings_uuid_and_id_order_desc
+
+ def up
+ prepare_async_index_removal :security_findings, [:uuid, :id], name: INDEX_NAME
+ end
+
+ def down
+ unprepare_async_index_by_name :security_findings, INDEX_NAME
+ end
+end