All posts

Migrations

Every post tagged migrations on the DbSchema blog.

Migrations 25 Oct 2026

What a Database Migration Tool Does

A database migration tool turns schema changes into SQL that every environment runs once, in order. See a real PostgreSQL 16 migration fail and pass.

Migrations 25 Oct 2026

Comparing Production and Staging Schemas

Compare production and staging database schemas before a release. See which catalog queries catch which drift on PostgreSQL 16, and where DbSchema fits.

Migrations 25 Oct 2026

Comparing Two Database Schemas

How to compare two database schemas: a catalog query, a schema-only dump diff and a model compare that writes the migration SQL, tested on PostgreSQL 16.

Migrations 25 Oct 2026

Putting a Database Schema in Git

Database schema version control with Git: keep the schema as a text model file, review its diffs, merge branches and sync the change into the database.

Migrations 25 Oct 2026

Rolling Back a Database Schema Change

Can you roll back a database schema change? Which engines undo DDL in a transaction, what data is gone for good, and how to run the reverse script.

Migrations 06 Sep 2026

Why Version a Schema at All

Learn why database schema versioning is essential for engineering managers to eliminate deployment bottlenecks and automate migration scripts safely.

Migrations 06 Sep 2026

Open-Source Schema Migration Tools

Discover how open-source schema migration tools help backend developers manage database changes safely. Compare DbSchema, Liquibase, and Flyway.