blob: 749a2f97d7c001727cf9ead939c3b5b506f882a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
class BackfillIssueUserMentionsNoteIdForBigintConversion < Gitlab::Database::Migration[2.1]
TABLE = :issue_user_mentions
COLUMNS = %i[note_id]
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
backfill_conversion_of_integer_to_bigint(TABLE, COLUMNS, batch_size: 40_000, sub_batch_size: 500)
end
def down
revert_backfill_conversion_of_integer_to_bigint(TABLE, COLUMNS)
end
end
|