Catch breaking database changes in every pull request. Zero config, zero cost โ add schema diff checks to your CI/CD pipeline in 60 seconds.
Risk: 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.
๐ก 12 total migration lines. Unlock the full migration script with SchemaLens Pro
๐ SchemaLens Schema Diff Report
| ๐ข Tables Added | 1 |
| ๐ด Tables Removed | 0 |
| ๐ก Tables Modified | 2 |
| โ ๏ธ Breaking Changes | 1 |
| ๐ Risk Score | 42/100 (Medium) |
Migration Preview (Free Tier)
ALTER TABLE users
ADD COLUMN email_verified_at TIMESTAMP;
๐ก 12 total migration lines. Unlock the full migration with SchemaLens Pro โ
Generated by SchemaLens GitHub Action
๐ SchemaLens Schema Diff (Free Tier)
Risk: Medium (42/100) | Breaking changes: 1
ALTER TABLE users
ADD COLUMN email_verified_at TIMESTAMP;
-- ... 12 total migration lines.
12 total migration lines. Unlock full migration with SchemaLens Pro
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, migration previews, and Pro upgrade CTAs. No clicking required.
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 free tier includes breaking change detection, risk scoring, and PR comments. No credit card 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.
| Feature | Free Tier | Pro (optional) |
|---|---|---|
| Schema diff summary | โ | โ |
| Breaking change detection | โ | โ |
| Risk score | โ | โ |
| PR comments | โ | โ |
| GitHub Check Runs | โ | โ |
| Rich Job Summary | โ | โ |
| Smart Skip (no SQL changes) | โ | โ |
| Full migration SQL | First 5 lines | โ Complete script |
| Markdown export | โ | โ |
| JSON export | โ | โ |
| Rate limit | 15/min | 30/min |