blob: c941cf583fb0d11096511c8e4ff25dec0ef11a79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
class InitBigintConversionForSharedRunnersDuration < Gitlab::Database::Migration[2.1]
disable_ddl_transaction!
TABLE_NAMES = %i[ci_project_monthly_usages ci_namespace_monthly_usages]
COLUMN_NAMES = %i[shared_runners_duration]
def up
TABLE_NAMES.each do |table_name|
initialize_conversion_of_integer_to_bigint table_name, COLUMN_NAMES
end
end
def down
TABLE_NAMES.each do |table_name|
revert_initialize_conversion_of_integer_to_bigint table_name, COLUMN_NAMES
end
end
end
|