Migrations: A Replayable Schema History
Migration: a PHP file describing a structural change to a table (creating, altering, or dropping columns) programmatically, so the database schema has a history that can be replayed on any other machine.
Migration 1: create table
→
Migration 2: add column
→
Migration 3: add index
→
Current schema
Similar to a git commit history for code: a migration is a commit history for the database schema, run in order according to its filename timestamp.