openskills.info
Course Preview

Schema Migration and Change Management

Schema migration is the controlled process of changing a database structure while keeping its data and applications usable. Change management adds version history, review, testing, deployment sequencing, monitoring, and recovery decisions around those changes.

itDatabases and data storage

Schema Migration and Change Management

Schema migration is the controlled movement of a database from one structural version to another. A migration can add a table, change a column, introduce a constraint, build an index, transform stored data, or remove an obsolete object. Change management surrounds that database operation with version control, review, testing, deployment coordination, observation, and recovery.

A schema is a contract between stored data and every client that reads or writes it. The database enforces part of that contract through types, constraints, keys, and indexes. Application code, reports, integration jobs, and operational tools depend on the same structure. A schema change therefore crosses several independently deployed systems.

The migration control loop

A durable migration system has three forms of state:

  1. Desired change: a reviewed migration file or declarative schema describes the intended transition.
  2. Database state: tables, columns, constraints, indexes, and data reflect what the database currently serves.
  3. Migration history: a ledger records which migrations ran, in which order, and often with a checksum.

The migration runner compares its ordered files with the history table. It validates the history, applies pending work, and records success or failure. This makes the same transition repeatable across development, test, staging, and production. It does not make the SQL safe by itself.

Versioned systems preserve the steps that produced the current schema. Declarative systems compare current and desired states, then plan the steps. Both approaches still require review because a correct end state can have several operationally different paths.

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources