Skip to content

Migration Patterns

Most operators only ever need a handful of patterns. Pick one to start, then refine it for your schema.

Situation Start with
First real migration, production data matters Minimal-safe
Dev or staging database can be dropped and rebuilt Recreate-fast
Load is long enough that restart cost matters Chunked-resume
You need to inspect DDL before loading data Schema-only and data-only
You must recreate views, routines, or cleanup SQL Hooks-driven migrations