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/20221110152133_delete_orphans_approval_rules.rb')
-rw-r--r--db/post_migrate/20221110152133_delete_orphans_approval_rules.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/db/post_migrate/20221110152133_delete_orphans_approval_rules.rb b/db/post_migrate/20221110152133_delete_orphans_approval_rules.rb
deleted file mode 100644
index 55b6a10d786..00000000000
--- a/db/post_migrate/20221110152133_delete_orphans_approval_rules.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-# frozen_string_literal: true
-
-class DeleteOrphansApprovalRules < Gitlab::Database::Migration[2.0]
- restrict_gitlab_migration gitlab_schema: :gitlab_main
-
- BATCH_SIZE = 1000
- SUB_BATCH_SIZE = 500
- MERGE_REQUEST_MIGRATION = 'DeleteOrphansApprovalMergeRequestRules'
- PROJECT_MIGRATION = 'DeleteOrphansApprovalProjectRules'
- INTERVAL = 2.minutes
-
- def up
- queue_batched_background_migration(
- PROJECT_MIGRATION,
- :approval_project_rules,
- :id,
- job_interval: INTERVAL,
- batch_size: BATCH_SIZE,
- sub_batch_size: SUB_BATCH_SIZE
- )
-
- queue_batched_background_migration(
- MERGE_REQUEST_MIGRATION,
- :approval_merge_request_rules,
- :id,
- job_interval: INTERVAL,
- batch_size: BATCH_SIZE,
- sub_batch_size: SUB_BATCH_SIZE
- )
- end
-
- def down
- delete_batched_background_migration(PROJECT_MIGRATION, :approval_project_rules, :id, [])
- delete_batched_background_migration(MERGE_REQUEST_MIGRATION, :approval_merge_request_rules, :id, [])
- end
-end