blob: e5e16e5d0dcf31a6f1c77418bcc041898f7ac284 (
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
|
# frozen_string_literal: true
class ScheduleVulnerabilitiesFeedbackMigration < Gitlab::Database::Migration[2.0]
MIGRATION = 'MigrateVulnerabilitiesFeedbackToVulnerabilitiesStateTransition'
TABLE_NAME = :vulnerability_feedback
BATCH_COLUMN = :id
DELAY_INTERVAL = 5.minutes
BATCH_SIZE = 250
MAX_BATCH_SIZE = 250
SUB_BATCH_SIZE = 50
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
# no-op
# Removing this migration due to subtransactions created. See discussion in
# https://gitlab.com/gitlab-org/gitlab/-/issues/386494#note_1217986034
end
def down
# no-op
end
end
|