Skip to content
Latchkey

Database Migration - CI/CD Glossary Definition

A database migration is a versioned, ordered change to a database schema or data, applied by a tool (Flyway, Liquibase, Alembic, Rails, Prisma) so every environment ends up in the same state.

In CI/CD

Migrations are checked into source control alongside code and run automatically during deploy, so the schema advances in lockstep with the application. CI typically runs pending migrations against a throwaway database before the test suite.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →