Promptles
Backend & APIs

Database Migration

intermediate

Definition

A small, saved script that changes how a database is laid out, such as adding a column, and runs in order so every copy of the database ends up the same shape.

In the wild

To start storing customers' phone numbers, a team writes a migration that adds a phone column to the customers table, then runs it on every copy of the database.

More from Backend & APIs