Catch breaking database changes in every pull request. Zero config, zero cost โ add schema diff checks to your CI/CD pipeline in 60 seconds.
Full diff, migration SQL, rollback, PR comments, Check Runs, Job Summary, and free Slack/Teams drift alerts.
Saved diff history, shareable links, all 80+ micro-tools, no exit-intent nags, and priority support.
Shared workspace, 90-day persisted alert history, admin controls, and unlimited members.
Pick the template, commit the workflow, and get schema diff reports on every pull request.
๐ Add starter workflow to your repoRisk: Medium (42/100) ยท Breaking: 1
SchemaLens detected 1 added, 0 removed, and 2 modified tables. Risk level: Medium (42/100). 1 breaking change(s) found.
ALTER TABLE users
ADD COLUMN email_verified_at TIMESTAMP;
-- ... 12 total migration lines.
๐ก Full migration SQL is free in every PR. Upgrade to Team for drift alerts โ
๐ SchemaLens Schema Diff Report
| ๐ข Tables Added | 1 |
| ๐ด Tables Removed | 0 |
| ๐ก Tables Modified | 2 |
| โ ๏ธ Breaking Changes | 1 |
| ๐ Risk Score | 42/100 (Medium) |
Generated Migration
ALTER TABLE users
ADD COLUMN email_verified_at TIMESTAMP;
๐ก Full migration SQL is free in every PR. Upgrade to Team for drift alerts โ
Generated by SchemaLens GitHub Action
๐ SchemaLens Schema Diff
Risk: Medium (42/100) | Breaking changes: 1
ALTER TABLE users
ADD COLUMN email_verified_at TIMESTAMP;
-- ... 12 total migration lines.
๐ก Full migration SQL is free in every PR. Upgrade to Team for drift alerts โ
Generated by SchemaLens GitHub Action
We use the SchemaLens GitHub Action on this very repository. Every time we update the demo schema files, the action runs and posts a diff summary.
Open a pull request that changes demo/schema-v2.sql to see the PR comment in action.
Breaking changes like dropped columns, removed indexes, or altered constraints get flagged before merge โ not after deploy.
Create a real GitHub Check Run that appears in the PR checks tab โ just like your test suite. Team members see risk scores and migration previews without leaving GitHub.
Every run generates a markdown summary on the Actions run page with tables, risk scores, full migration SQL, and Team upgrade CTAs. No clicking required.
Set upload-report: true to generate a beautiful HTML report artifact. Download it, share it, open it offline โ includes risk score, breaking changes, migration SQL, and rollback SQL. Learn more โ What's a schema diff report? โ
Every pull request gets a clear schema diff summary posted as a comment. Reviewers see exactly what changed.
Set run-only-on-schema-change: true and the action skips entirely when no .sql files were modified โ saving CI minutes and reducing noise.
No database connections, no CLI installation, no license key. Just point the action at two SQL files.
Set fail-on-breaking: true and the workflow fails if any dangerous schema changes are detected.
Each diff gets a 0-100 risk score. High-risk migrations get extra scrutiny in code review.
The action includes breaking change detection, risk scoring, PR comments, Check Runs, Job Summaries, and full migration SQL. No license key required.
Export your database schema to a SQL file as part of your workflow (e.g., pg_dump --schema-only or commit your schema file).
The action compares the schema from your base branch against the schema in the PR. Any drift is surfaced instantly.
Enable post-comment: true and the action posts a formatted summary directly on the pull request.
Send every diff result to the SchemaLens hosted webhook and get rich alerts in Slack or Microsoft Teams โ plus a shareable alert page your whole team can view. Free tier includes alerts, shareable URLs, and local dashboard history. Team tier adds persisted server-side history and higher rate limits.
Instant notifications with risk score, breaking changes, and migration preview. Free.
Every alert gets a public link like schemalens.tech/schema-drift-alert.html#... that anyone on your team can open.
Free: local history from opened alert links. Team: persisted server-side history for 90 days.
Pin your database schema to a deterministic SHA-256 fingerprint and fail the build when it drifts unexpectedly. Generate a schema.lock with the Schema Lockfile Generator, commit it, and the Action verifies the fingerprint on every run.
Canonicalizes CREATE TABLE / CREATE INDEX statements exactly like the lockfile generator, so the same schema always produces the same hash.
Set fail-on-lockfile-drift: true to block merges, or false to surface the mismatch as a warning in the job summary.
Lockfile status appears in the Action job summary and PR comments automatically, with expected and actual hashes.
The GitHub Action is free for every repo. Upgrade to Pro for personal power features, or Team when you need a shared workspace.
| Feature | Free | Pro โ $39 lifetime | Team โ $29/mo |
|---|---|---|---|
| Schema diff summary | โ | โ | โ |
| Breaking change detection | โ | โ | โ |
| Risk score | โ | โ | โ |
| PR comments | โ | โ | โ |
| GitHub Check Runs | โ | โ | โ |
| Rich Job Summary | โ | โ | โ |
| Smart Skip (no SQL changes) | โ | โ | โ |
| Full migration SQL + rollback | โ | โ | โ |
| Markdown / JSON export | โ | โ | โ |
| Schema drift alerts (Slack/Teams) | โ | โ | โ |
| Saved diff history & shareable links | โ | โ Unlimited | โ Unlimited |
| 80+ micro-tools | โ | โ | โ |
| Priority support | โ | โ | โ |
| Persisted alert history | โ | โ | โ 90 days |
| Shared workspace & admin controls | โ | โ | โ |
| Unlimited members | โ | โ | โ |