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/20240119102950_remove_index_user_callouts_on_user_id.rb')
-rw-r--r--db/post_migrate/20240119102950_remove_index_user_callouts_on_user_id.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20240119102950_remove_index_user_callouts_on_user_id.rb b/db/post_migrate/20240119102950_remove_index_user_callouts_on_user_id.rb
new file mode 100644
index 00000000000..cdfb5d4614f
--- /dev/null
+++ b/db/post_migrate/20240119102950_remove_index_user_callouts_on_user_id.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class RemoveIndexUserCalloutsOnUserId < Gitlab::Database::Migration[2.2]
+ disable_ddl_transaction!
+
+ milestone '16.9'
+
+ INDEX_NAME = 'index_user_callouts_on_user_id'
+
+ def up
+ remove_concurrent_index_by_name(:user_callouts, INDEX_NAME)
+ end
+
+ def down
+ add_concurrent_index(:user_callouts, :user_id, name: INDEX_NAME)
+ end
+end