djrobstep/migra

DEPRECATED: Like diff but for PostgreSQL schemas

Python

3,046

171 commits

updated Aug 25, 2025

See the code

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.

developer-experience
developer-tools
postgresql
python
schema-changes
schema-migrations

djrobstep/migra

DEPRECATED: Like diff but for PostgreSQL schemas

Python

3,046

171 commits

updated Aug 25, 2025

See the code

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.

developer-experience
developer-tools
postgresql
python
schema-changes
schema-migrations

Project health

Overall

2.3/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

PyPI

Latest release

3.0.1663481299 · Sep 18, 2022

Releases this year

0

Significant stargazers

(top 24 of 64)

Domen Kožar

1,090 followers · starred Aug 2020

jongleberry

2,417 followers · starred Mar 2018

Felix Geisendörfer

4,244 followers · starred Aug 2020

Łukasz Langa

2,421 followers · starred Oct 2018