djrobstep
migra
Python

DEPRECATED: Like diff but for PostgreSQL schemas

Last updated Jun 15, 2026
3.0k
Stars
143
Forks
87
Issues
0
Stars/day
Attention Score
54
Language breakdown
No language data available.
โ–ธ Files click to expand
README

This project is officially deprecated, but its functionality has recently risen like a phoenix from the ashes in results

Version 3.0.1663481299 (from Sep 18, 2022) was the final release, and there will be no further releases.

migra was like diff but for Postgres schemas

  • ## compared schemas
  • ## autogenerated migration scripts
  • ## autosynced your development database from your application models
  • ## made your schema changes testable, robust, and (mostly) automatic
migra was a schema diff tool for PostgreSQL, written in Python. You could use it in your python scripts, or from the command line like this:

$ migra postgresql:///a postgresql:///b alter table "public"."products" add column newcolumn text;

alter table "public"."products" add constraint "x" CHECK ((price > (0)::numeric));

migra magically figured out all the statements required to get from A to B.

ยฉ 2026 GitRepoTrend ยท djrobstep/migra ยท Updated daily from GitHub