2021-06-02 21:10:00 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class BackfillDeploymentsForBigintConversion < ActiveRecord::Migration[6.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
2022-05-19 12:08:42 +00:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2021-06-02 21:10:00 +00:00
|
|
|
TABLE = :deployments
|
|
|
|
COLUMNS = %i(deployable_id)
|
|
|
|
|
|
|
|
def up
|
|
|
|
backfill_conversion_of_integer_to_bigint TABLE, COLUMNS
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
revert_backfill_conversion_of_integer_to_bigint TABLE, COLUMNS
|
|
|
|
end
|
|
|
|
end
|