debian-mirror-gitlab/db/post_migrate/20210907013944_cleanup_bigint_conversion_for_ci_builds_metadata.rb
2021-11-18 22:05:49 +05:30

18 lines
443 B
Ruby

# frozen_string_literal: true
class CleanupBigintConversionForCiBuildsMetadata < Gitlab::Database::Migration[1.0]
enable_lock_retries!
TABLE = :ci_builds_metadata
def up
cleanup_conversion_of_integer_to_bigint(TABLE, :id)
cleanup_conversion_of_integer_to_bigint(TABLE, :build_id)
end
def down
restore_conversion_of_integer_to_bigint(TABLE, :build_id)
restore_conversion_of_integer_to_bigint(TABLE, :id)
end
end