Automatic schema diff comments on every pull request. No workflow file, no YAML, no maintenance โ just install and SchemaLens watches your SQL changes.
Install the app on your repo. It listens for pull requests and automatically comments the schema diff โ no workflow file needed.
Developers see added/removed/modified tables, breaking changes, risk score, and generated migration SQL right inside the PR.
Schema contents are read through GitHub's API, diffed in memory, and never stored. SchemaLens only needs read access to your SQL files.
Add a .schemalens.json file to control which SQL file to diff and which dialect to use. Otherwise the app auto-detects from changed .sql files.
Pick the repositories SchemaLens can access. The app subscribes to pull request events only.
When a PR is opened or updated, SchemaLens reads your schema file at the base and head refs.
SchemaLens posts (or updates) a comment with the diff summary, breaking changes, risk score, and migration SQL.
SchemaLens posts a concise report directly on the pull request. Pick an example to preview what developers and reviewers see.
Create .schemalens.json in your repo root to override auto-detection. Without it, the app diffs the only changed .sql file, or asks for a config when multiple SQL files change.
| Permission | Access | Why |
|---|---|---|
| Contents | Read | Read schema SQL files from the repo. |
| Pull requests | Read & Write | Read changed files and post/update PR comments. |
| Metadata | Read | Required by GitHub for all apps. |
Both give you schema diff reports in pull requests. Choose the one that fits your workflow.
| Feature | GitHub App | GitHub Action |
|---|---|---|
| No workflow file or YAML | โ | โ |
Auto-detect changed .sql files | โ | โ |
| PR comment with diff + migration | โ | โ |
| Breaking change gate | โ | โ |
| Job summary / check run output | โ | โ |
| Slack/Teams drift alerts (Team) | โ | โ |
| Best for | Teams who want zero config | Teams who want full CI control |
No. The GitHub App works entirely through GitHub webhooks and the GitHub API. You install it once and it comments on PRs automatically.
PostgreSQL, MySQL, SQLite, SQL Server, and Oracle. The app auto-detects the dialect from file content and path, or you can set it explicitly in .schemalens.json.
No. SchemaLens reads the SQL file, computes the diff in memory, posts the comment, and discards the data. Nothing is logged or persisted on SchemaLens servers.
Yes. You choose which repositories the app can access during installation. It only reads the SQL files it needs to diff.
If only one .sql file changes, the app diffs it automatically. If multiple change, it looks for a .schemalens.json config to pick the schema file; otherwise it posts a comment asking you to add one.
๐ SchemaLens Schema Diff Report
Dialect: postgres
Generated Migration
Generated by the SchemaLens GitHub App. Add Slack/Teams alerts and a team dashboard with SchemaLens Team.