Rehearse Rollbacks on a Disposable Copy Before Merging Agent-Drafted Migrations
A migration should be judged ready only after a second person has successfully reversed it on a copy, not merely because the forward change applied cleanly. The recommended process uses a disposable copy of the database at the same engine version, with baseline counts and checksums captured before and after the forward change. The stated rollback is then run, and the results are compared against the original baseline to detect missing data, such as values lost when a column is dropped and re-added. A verdict of reversible, forward-fix-only, or blocked is recorded by a rehearser who did not write the draft, and the verdict expires once the affected tables change. The guidance also stresses testing idempotency and partial failure, and applying the same masking and access controls to scratch copies as to backups.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in