Files
gitlab-foss/db/post_migrate/20250113222525_finalize_events_sharding_key_backfill.rb
2025-01-23 03:40:45 +00:00

22 lines
465 B
Ruby

# frozen_string_literal: true
class FinalizeEventsShardingKeyBackfill < Gitlab::Database::Migration[2.2]
milestone '17.9'
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
ensure_batched_background_migration_is_finished(
job_class_name: 'BackfillEventsShardingKey',
table_name: :events,
column_name: :id,
job_arguments: [],
finalize: true
)
end
def down
# no-op
end
end