LEVEL 3 · ENGINEER

Database Migration Rehearsal

Let a developer or coding agent propose SQLite migrations against a disposable database copy. Record schema and row-count invariants before and after, test declared rollback steps, and expose irreversible changes. Export a machine-readable rehearsal receipt and review page without touching the source database.

4 stages~8 hoursPythoncore
Snapshot a local database and define invariantsApply migrations only to the disposable copyExercise rollback and detect data lossExport evidence for an explicit release decision
YOU END UP WITH

Schema diff, invariant results and reversible-migration receipt

LEARN FIRST
  • Python 3.10+; lists, dictionaries and functions
PROJECT OUTLINE

Database Migration Rehearsal in 4 stages

Rehearse a proposed migration on a copy and show exactly what changes.

  1. Snapshot a local database and define invariants

    Capture schema, row counts and content identities from a read-only source.

    starter · ~2 hours · Python

    SQLite backuprow fingerprints
  2. Apply migrations only to the disposable copy

    Run the supplied SQL on a disposable in-memory copy.

    core · ~2 hours · Python

    SQLite authorizermigration evidence
  3. Exercise rollback and detect data loss

    Exercise the declared reverse operation and compare all captured state.

    core · ~2 hours · Python

    rollback verificationdata loss
  4. Export evidence for an explicit release decision

    Combine schema diffs, invariants and rollback into release evidence.

    core · ~2 hours · Python

    invariantsrelease review

Build these projects first

All projects · Course catalog · Source on GitHub