🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Databases Intermediate

What is Migration?

A version-controlled change to a database schema that can be applied and reversed systematically.

Database migrations track schema changes over time, similar to version control for code. Each migration defines an "up" (apply) and "down" (revert) operation, such as creating tables, adding columns, or modifying constraints.

Migrations ensure all environments (development, staging, production) have identical database schemas. They are run in sequence and tracked to prevent re-application. Tools include Flyway, Liquibase, Alembic, and framework-specific migration systems.

Related Terms

Graph Database
A database that uses graph structures with nodes, edges, and properties to store and query highly connected data.
Partitioning
A technique of dividing large database tables into smaller, more manageable segments while maintaining a single logical table.
Row-Level Security (RLS)
A database feature that restricts which rows a user can access in a table based on security policies.
EXPLAIN Plan
A database command that shows how the query planner will execute a SQL query, revealing join methods, scan types, and estimated costs.
Replication
The process of copying and maintaining database data across multiple servers for redundancy, failover, and read scaling.
Prepared Statement
A pre-compiled SQL template that uses parameters instead of literal values, preventing SQL injection and improving performance.
View All Databases Terms →