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/20220404194649_replace_work_item_type_backfill_next_batch_strategy.rb')
-rw-r--r--db/post_migrate/20220404194649_replace_work_item_type_backfill_next_batch_strategy.rb16
1 files changed, 4 insertions, 12 deletions
diff --git a/db/post_migrate/20220404194649_replace_work_item_type_backfill_next_batch_strategy.rb b/db/post_migrate/20220404194649_replace_work_item_type_backfill_next_batch_strategy.rb
index 1f2c0715f04..9b74cef144f 100644
--- a/db/post_migrate/20220404194649_replace_work_item_type_backfill_next_batch_strategy.rb
+++ b/db/post_migrate/20220404194649_replace_work_item_type_backfill_next_batch_strategy.rb
@@ -1,21 +1,13 @@
# frozen_string_literal: true
class ReplaceWorkItemTypeBackfillNextBatchStrategy < Gitlab::Database::Migration[1.0]
- JOB_CLASS_NAME = 'BackfillWorkItemTypeIdForIssues'
- NEW_STRATEGY_CLASS = 'BackfillIssueWorkItemTypeBatchingStrategy'
- OLD_STRATEGY_CLASS = 'PrimaryKeyBatchingStrategy'
-
- class InlineBatchedMigration < ApplicationRecord
- self.table_name = :batched_background_migrations
- end
-
def up
- InlineBatchedMigration.where(job_class_name: JOB_CLASS_NAME)
- .update_all(batch_class_name: NEW_STRATEGY_CLASS)
+ # no-op
+ # migrations will be rescheduled with the correct batching class
+ # no need for this migration
end
def down
- InlineBatchedMigration.where(job_class_name: JOB_CLASS_NAME)
- .update_all(batch_class_name: OLD_STRATEGY_CLASS)
+ # no-op
end
end