Skip to content

Resolve "Service ping integration with batched background migrations"

What does this MR do and why?

We are adding a new column (finished_at) to the batched_background_migrations table. This column aims to track when a batched background migration finishes.

Migration up:

main: == 20230603174306 AddFinishedAtColumnToBatchedBackgroundMigrationsTable: migrating
main: -- add_column(:batched_background_migrations, :finished_at, :datetime_with_timezone)
main:    -> 0.0017s
main: == 20230603174306 AddFinishedAtColumnToBatchedBackgroundMigrationsTable: migrated (0.0050s)

Migration down:

main: == 20230603174306 AddFinishedAtColumnToBatchedBackgroundMigrationsTable: reverting
main: -- remove_column(:batched_background_migrations, :finished_at, :datetime_with_timezone)
main:    -> 0.0077s
main: == 20230603174306 AddFinishedAtColumnToBatchedBackgroundMigrationsTable: reverted (0.0131s)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #412707 (closed)

Edited by Diogo Frazão

Merge request reports