DEPRECATED: Like diff but for PostgreSQL schemas
Python
3,046
171 commits
updated Aug 25, 2025
Version 3.0.1663481299 (from Sep 18, 2022) was the final release, and there will be no further releases.
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.
Overall
Maintained
Code review
PyPI
Latest release
Releases this year
(top 24 of 64)
1,090 followers · starred Aug 2020
2,417 followers · starred Mar 2018
4,244 followers · starred Aug 2020
2,421 followers · starred Oct 2018
DEPRECATED: Like diff but for PostgreSQL schemas
Python
3,046
171 commits
updated Aug 25, 2025
Version 3.0.1663481299 (from Sep 18, 2022) was the final release, and there will be no further releases.
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.
Overall
Maintained
Code review
PyPI
Latest release
Releases this year
(top 24 of 64)
1,090 followers · starred Aug 2020
2,417 followers · starred Mar 2018
4,244 followers · starred Aug 2020
2,421 followers · starred Oct 2018