blob: 0cff65db72f135a86f030965f171abc1eeddafc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# frozen_string_literal: true
# rubocop: disable BackgroundMigration/DictionaryFile -- queued/introduced before the rule is introduced
class RequeueBackfillHasRemediationsOfVulnerabilityReads < Gitlab::Database::Migration[2.2]
milestone '16.7'
MIGRATION = "BackfillHasRemediationsOfVulnerabilityReads"
DELAY_INTERVAL = 2.minutes
BATCH_SIZE = 10_000
SUB_BATCH_SIZE = 50
restrict_gitlab_migration gitlab_schema: :gitlab_main
disable_ddl_transaction!
# per: https://docs.gitlab.com/ee/development/database/batched_background_migrations.html#requeuing-batched-background-migrations
# > When you requeue the batched background migration, turn the original queuing
# > into a no-op by clearing up the #up and #down methods of the migration
# > performing the requeuing. Otherwise, the batched background migration is
# > queued multiple times on systems that are upgrading multiple patch releases
# > at once.
def up; end
def down; end
end
# rubocop: enable BackgroundMigration/DictionaryFile
|