Skip to content

Schema Migration Tool

Medium — good to knowDatabase

ELI5 — The Vibe Check

A schema migration tool is version control for your database. Each migration is a numbered script that changes the schema: add a column, create a table, drop an index. It tracks what's been applied so you never run the same change twice. No more 'hey can you run this SQL on production?'

Real Talk

Schema migration tools manage versioned, incremental changes to database schemas across environments. They maintain a metadata table tracking applied migrations, support reversible up/down operations, and ensure schema consistency across development, staging, and production. Examples include Prisma Migrate, Alembic, Flyway, Knex migrations, and Django migrations.

When You'll Hear This

"Always use a migration tool — never modify production schemas by hand." / "The migration tool tracks which changes have been applied to each environment."

Made with passive-aggressive love by manoga.digital. Powered by Claude.