Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230118144623_schedule_migration_for_remediation.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ed95ecfaad3fb7e85c7b2ffac978bc326b22c71c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class ScheduleMigrationForRemediation < Gitlab::Database::Migration[2.1]
  restrict_gitlab_migration gitlab_schema: :gitlab_main

  MIGRATION = 'MigrateRemediationsForVulnerabilityFindings'
  DELAY_INTERVAL = 2.minutes
  SUB_BATCH_SIZE = 500
  BATCH_SIZE = 5000

  def up
    # no-op as described in https://docs.gitlab.com/ee/development/database/batched_background_migrations.html
  end

  def down
    # no-op as described in https://docs.gitlab.com/ee/development/database/batched_background_migrations.html
  end
end