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/20201223012231_reindex_ci_pipelines_on_schedule_id_and_id.rb')
-rw-r--r--db/post_migrate/20201223012231_reindex_ci_pipelines_on_schedule_id_and_id.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/db/post_migrate/20201223012231_reindex_ci_pipelines_on_schedule_id_and_id.rb b/db/post_migrate/20201223012231_reindex_ci_pipelines_on_schedule_id_and_id.rb
deleted file mode 100644
index 9ed1aea911a..00000000000
--- a/db/post_migrate/20201223012231_reindex_ci_pipelines_on_schedule_id_and_id.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# frozen_string_literal: true
-
-class ReindexCiPipelinesOnScheduleIdAndId < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- OLD_INDEX_NAME = 'index_ci_pipelines_on_pipeline_schedule_id'
- NEW_INDEX_NAME = 'index_ci_pipelines_on_pipeline_schedule_id_and_id'
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :ci_pipelines, [:pipeline_schedule_id, :id], name: NEW_INDEX_NAME
- remove_concurrent_index_by_name :ci_pipelines, OLD_INDEX_NAME
- end
-
- def down
- add_concurrent_index :ci_pipelines, :pipeline_schedule_id, name: OLD_INDEX_NAME
- remove_concurrent_index_by_name :ci_pipelines, NEW_INDEX_NAME
- end
-end