debian-mirror-gitlab/db/migrate/20210430121522_initialize_conversion_of_ci_build_trace_sections_to_bigint.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
411 B
Ruby
Raw Normal View History

2021-09-04 01:27:46 +05:30
# frozen_string_literal: true
class InitializeConversionOfCiBuildTraceSectionsToBigint < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
TABLE = :ci_build_trace_sections
COLUMN = :build_id
def up
initialize_conversion_of_integer_to_bigint(TABLE, COLUMN, primary_key: COLUMN)
end
def down
revert_initialize_conversion_of_integer_to_bigint(TABLE, COLUMN)
end
end