Skip to content

oobmigrations: Declare out-of-band migrations statically in Git

Administrator requested to merge ef/declarative-oobmigration-metadata into main

Created by: efritz

This PR removes the insert statements from in-band migrations to populate the out-of-band migrations table contents. This table holds the metadata (and state/progress) of each registered out-of-band migration. This metadata is now stored in a declarative file, which is synchronized with the database on initialization of the migration runner.

This ensures that instances which have skipped migrations or deleted rows from this table (which I've personally witnessed recently) will self-heal on the next startup.

Fixes #38044 (closed).

Test plan

Unit tests; truncated out-of-band migrations table and ensured the metadata is synchronized on startup.

Merge request reports

Loading