[Migration Engine Part 2] Add a migration checkpoint table to SQL Server and PostgreSQL - #5897
Draft
warwickschroeder wants to merge 4 commits into
Draft
warwickschroeder wants to merge 4 commits into
warwickschroeder wants to merge 4 commits into
Conversation
warwickschroeder
added this pull request to stack #5898
September 16, 2026 04:25
warwickschroeder
force-pushed
the
warwick/migration-engine-2
branch
from
September 16, 2026 13:20
bd65b15 to
4456c32
Compare
johnsimons
reviewed
Sep 17, 2026
johnsimons
reviewed
Sep 17, 2026
johnsimons
approved these changes
Sep 17, 2026
warwickschroeder
force-pushed
the
warwick/migration-engine-2
branch
from
September 17, 2026 04:17
059e1b9 to
805d0d4
Compare
rbev
approved these changes
Sep 23, 2026
- Introduced a new table `MigrationCheckpoints` to track migration states and progress. - Implemented `MigrationCheckpointEntity` to represent the checkpoint data structure. - Added `EFMigrationCheckpointStore` for managing checkpoint data with methods for reading and upserting checkpoints. - Created `MigrationCheckpointConfiguration` for configuring the entity in the DbContext. - Enhanced `ServiceControlDbContext` to include the new `MigrationCheckpoints` DbSet. - Updated `EfCoreExtensions` to provide an `UpsertCheckpoint` method for managing checkpoint persistence. - Added unit tests for `EFMigrationCheckpointStore` and `MigrationCheckpointTable` to ensure correct functionality. - Implemented transaction handling in `MigrationCheckpointTransactionTests` to verify checkpoint behavior during commits and rollbacks. - Updated RavenDB integration to support embedded server readiness checks.
warwickschroeder
force-pushed
the
warwick/migration-engine-2
branch
from
September 30, 2026 07:25
7dd5105 to
a2f9ce8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Somewhere for the migration engine to save its progress on SQL Server and PostgreSQL, so a stopped copy can resume rather than restart, plus fixes to how the RavenDB source report starts. Nothing writes checkpoints yet: the table is created empty and only the tests fill it.
--setup.--migration-source-reportprints its error and exits 1 instead of crashing.Tests
ServiceControl.Persistence.Tests/EFCore: the table's columns and timestamps, the store's reads and saves, and the transaction and stale-save cases, on SQL Server and PostgreSQL.