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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-19 14:01:45 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-19 14:01:45 +0300
commit9297025d0b7ddf095eb618dfaaab2ff8f2018d8b (patch)
tree865198c01d1824a9b098127baa3ab980c9cd2c06 /db/post_migrate/20231124180449_add_index_updated_at_to_bulk_import_batch_trackers.rb
parent6372471f43ee03c05a7c1f8b0c6ac6b8a7431dbe (diff)
Add latest changes from gitlab-org/gitlab@16-7-stable-eev16.7.0-rc42
Diffstat (limited to 'db/post_migrate/20231124180449_add_index_updated_at_to_bulk_import_batch_trackers.rb')
-rw-r--r--db/post_migrate/20231124180449_add_index_updated_at_to_bulk_import_batch_trackers.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/post_migrate/20231124180449_add_index_updated_at_to_bulk_import_batch_trackers.rb b/db/post_migrate/20231124180449_add_index_updated_at_to_bulk_import_batch_trackers.rb
new file mode 100644
index 00000000000..1503a4e9ea7
--- /dev/null
+++ b/db/post_migrate/20231124180449_add_index_updated_at_to_bulk_import_batch_trackers.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+class AddIndexUpdatedAtToBulkImportBatchTrackers < Gitlab::Database::Migration[2.2]
+ disable_ddl_transaction!
+ milestone '16.7'
+
+ INDEX = 'index_bulk_import_batch_trackers_on_tracker_id_and_updated_at'
+
+ def up
+ add_concurrent_index :bulk_import_batch_trackers,
+ [:tracker_id, :updated_at],
+ name: INDEX
+ end
+
+ def down
+ remove_concurrent_index_by_name :bulk_import_batch_trackers, name: INDEX
+ end
+end