SchemaLens diffs your database schema on every pull request, flags breaking changes with a risk score, and posts the result as a PR comment โ so dangerous migrations never slip through.
Free forever for public repos and open-source projects.
Removing a table or column that production code still references causes immediate errors.
Changing VARCHAR(255) โ VARCHAR(50) or INT โ SMALLINT can truncate or overflow existing data.
Adding NOT NULL without a default value breaks every row that has a NULL in that column.
Removing unique constraints or indexes can cause duplicate data and sudden query slowdowns.
New tables, new nullable columns, and new indexes are usually safe and green-lit by SchemaLens.
Widening a VARCHAR or adding a default value is safe and does not require a deploy order dance.
SchemaLens GitHub Action or App detects the schema change and starts a diff.
The schema from the PR branch is compared against the target branch to find every table, column, index, and constraint change.
A PR comment shows the diff summary, breaking changes, risk score, and migration SQL โ exactly where reviewers already look.
This is what SchemaLens posts automatically when a breaking change is detected:
Add a workflow file to your repo. Full control over gates, annotations, and breaking-change policies.
View Action โZero-config install. SchemaLens comments on every PR that touches a schema file.
Install App โManually review any public GitHub PR's schema changes. Great for open-source contributions and demos.
Try Free โ