dbdiff vs pg-schema-diff
dbdiff
rekurt.github.iopg-schema-diff
github.comSide by side
| Figure | dbdiff | pg-schema-diff |
|---|---|---|
| Price from | — | — |
| Free plan | — | — |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | — |
| macOS | Yes | — |
| Linux | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 0 | 0 |
| Spec score · Database Schema Comparison Tools | 7.7 (#10) | 6.9 (#18) |
| License | The project page identifies the license as MIT. | The repository lists the project under the MIT license. |
| Purpose | DBDiff compares local or remote databases and generates a migration file for their differences. | pg-schema-diff compares Postgres schemas and generates SQL migrations to move between them with minimal downtime and locks. |
| Support | The project directs users to GitHub issues and offers a contact route for commercial support enquiries. | The contribution guide says maintainers will try to respond to bug reports, feature requests, and questions within one week. |
In their own words
dbdiff
DBDiff is a free, MIT-licensed tool for comparing local or remote MySQL, PostgreSQL, and SQLite databases and generating migrations from schema or data differences. It can produce SQL migrations with up and down changes, using native SQL, Flyway, Liquibase, Laravel, or custom templates. The migration runner can create, apply, roll back, check, validate, repair, and baseline migrations. Listed comparison targets include tables, views, triggers, routines, types, sequences, row-level security policies, and data. Its configuration file can specify connections, drivers, diff scope, included or ignored tables and fields, and row filters. Installation options include pre-built Windows, macOS, and Linux binaries, npm, PHAR, Docker or Podman images, and Composer source. For PostgreSQL, DBDiff also compares row-level security policies and table security flags. By default, generation stops when a migration would drop a table or column, though an option permits those changes. One documented PostgreSQL limitation is that removing or reordering enum labels may leave dependent objects that prevent an automatically generated migration from applying.
pg-schema-diff
pg-schema-diff has no write-up on Specifiction yet; its figures are above.