debian-mirror-gitlab/db/post_migrate/20210907021940_cleanup_bigint_conversion_for_ci_stages.rb
2021-11-11 11:23:49 +05:30

20 lines
464 B
Ruby

# frozen_string_literal: true
class CleanupBigintConversionForCiStages < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
TABLE = :ci_stages
# rubocop:disable Migration/WithLockRetriesDisallowedMethod
def up
with_lock_retries do
cleanup_conversion_of_integer_to_bigint(TABLE, :id)
end
end
# rubocop:enable Migration/WithLockRetriesDisallowedMethod
def down
restore_conversion_of_integer_to_bigint(TABLE, :id)
end
end