Skip to content
SPECIFICTION
Get listed

dbdiff vs pg-schema-diff

dbdiff

rekurt.github.io

pg-schema-diff

github.com

Side by side

Figuredbdiffpg-schema-diff
Price from——
Free plan——
Free trial——
Open source——
WindowsYes—
macOSYes—
LinuxYes—
Self-hostedYesYes
Plans published00
Spec score · Database Schema Comparison Tools7.7 (#10)6.9 (#18)
LicenseThe project page identifies the license as MIT.The repository lists the project under the MIT license.
PurposeDBDiff 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.
SupportThe 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.

Visit rekurt.github.io

pg-schema-diff

pg-schema-diff has no write-up on Specifiction yet; its figures are above.

Visit github.com