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-29 00:07:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-29 00:07:10 +0300
commita955f4024d40663f4b1affd74a346ffc96a92371 (patch)
tree7ed63c2c6451791b95cef89a49e33852b4c310ea /db/post_migrate
parent0e08747b3d348b6c0effae19fe7050af327c05e2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20231228043653_rename_old_index_to_new_index_in_catalog_resources.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/post_migrate/20231228043653_rename_old_index_to_new_index_in_catalog_resources.rb b/db/post_migrate/20231228043653_rename_old_index_to_new_index_in_catalog_resources.rb
new file mode 100644
index 00000000000..6569e624c78
--- /dev/null
+++ b/db/post_migrate/20231228043653_rename_old_index_to_new_index_in_catalog_resources.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+class RenameOldIndexToNewIndexInCatalogResources < Gitlab::Database::Migration[2.2]
+ milestone '16.8'
+
+ enable_lock_retries!
+
+ OLD_INDEX_NAME = 'index_catalog_resources_on_search_vector_triagram'
+ NEW_INDEX_NAME = 'index_catalog_resources_on_search_vector'
+
+ def change
+ rename_index :catalog_resources, OLD_INDEX_NAME, NEW_INDEX_NAME
+ end
+end