Skip to main content
Back to projects

Open Source: Postgres Migration Diff Tool

Python CLI that diffs PostgreSQL schemas across environments and outputs idempotent migration SQL. MIT-licensed.

Year 2025 → ongoing
Role Solo maintainer
Type Open source
Status In progress

About this project.

An MIT-licensed Python CLI that diffs PostgreSQL schemas across environments and outputs idempotent migration SQL — ~3k GitHub stars, used in production by 40+ teams.

Feature set

Schema diff engine

  • Detects column, index, and constraint drift
  • Handles partitioned + inherited tables
  • Outputs idempotent migration SQL

CLI ergonomics

  • Dry-run mode with colored diff output
  • Pipeable JSON for CI integration
  • Single static binary, no Postgres client required

Safety net

  • Schema snapshot diffing in test runners
  • Refuses destructive ops without explicit flag
  • Per-environment policy file support

Open source

  • MIT-licensed, ~3k GitHub stars
  • Used by 40+ teams in production
  • Contributor guide + monthly release cadence

You might also like.

Other recent projects.