Diff PostgreSQL schemas and generate SQL migration scripts
Diff Postgres schemas and generating SQL migrations
pg-schema-diff$ pg-schema-diff postgres://user:pass@localhost/db1 postgres://user:pass@localhost/db2$ pg-schema-diff --from-file schema.sql postgres://user:pass@localhost/mydb$ pg-schema-diff postgres://user:pass@localhost/old postgres://user:pass@localhost/new > migration.sql