adepanges/schema-diff

Migration-tool agnostic database schema diff — detects schema changes across any migration tool

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
db-engineDatabase engine: postgres | mysql | sqliteyes
db-versionDocker image version tag (e.g. "15", "8.0", "latest")nolatest
migrate-commandShell command to run your migrations (e.g. "npx db-migrate up" or "flyway migrate")yes
migrations-pathWorking directory for the migration command (defaults to repository root)no.
baseline-branchBranch to compare schema against (informational — used with baseline DBML artifact)nomain
post-pr-commentPost the diff report as a PR commentnotrue
github-tokenGitHub token for posting PR comments (defaults to GITHUB_TOKEN env var)no""
output-dbmlWrite a DBML snapshot to the output directorynotrue
output-sql-dumpWrite the full SQL schema dump to the output directorynofalse
fail-on-destructiveFail the workflow if destructive schema changes are detectednofalse
namedescription
diff-reportThe full schema diff report (markdown)
has-destructive"true" if destructive changes were detected
added-tablesComma-separated list of added table names
removed-tablesComma-separated list of removed table names
modified-tablesComma-separated list of modified table names
output-dirPath to the directory containing output files