blob: 39dd78975daa9ae5aac28f6207ffe40ba1ebfe41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
class BackfillCiBuildsMetadataForBigintConversion < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
TABLE = :ci_builds_metadata
COLUMN = :build_id
def up
backfill_conversion_of_integer_to_bigint TABLE, COLUMN, batch_size: 15000, sub_batch_size: 100
end
def down
revert_backfill_conversion_of_integer_to_bigint TABLE, COLUMN
end
end
|