Catch breaking database changes in every Azure DevOps pull request. Zero config, zero cost โ add schema diff checks to your pipeline in 60 seconds.
๐ 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;
Generated by SchemaLens Azure DevOps
Team members can download the full markdown report from the Build > Artifacts section of any Azure DevOps pipeline run. The report includes:
Breaking changes like dropped columns, removed indexes, or altered constraints get flagged before merge โ not after deploy.
Every pull request gets a clear schema diff summary posted as a comment. Reviewers see exactly what changed without leaving Azure DevOps.
The full markdown report is attached to every pipeline as an artifact. Download it for compliance docs, audits, or offline review.
Path filters let the pipeline skip entirely when no .sql files were modified โ saving build minutes.
No database connections, no CLI installation, no license key. Just point the job at two SQL files.
Set FAIL_ON_BREAKING: "true" and the pipeline fails if any dangerous schema changes are detected.
Every diff report includes a 0โ100 risk score and a label like Low, Medium, High, or Critical.
Post PR comments using Azure DevOps' built-in $(System.AccessToken) โ no extra service connection required.
Download azure-pipelines.yml above or use the CI/CD Setup Wizard to customize it for your repo.
Copy ci/schemalens-diff.js into your repository. It has zero npm dependencies and works in any Azure DevOps agent.
To post comments back to the pull request, enable the Contribute to pull requests permission for the Project Collection Build Service account, or use an Azure DevOps PAT stored as a secret variable.
Modify any .sql file and open a PR. The pipeline runs, generates the diff report, and posts it as a PR comment.
| Variable | Default | Description |
|---|---|---|
SCHEMA_OLD_PATH | db/schema.sql | Path to the base schema file in the target branch. |
SCHEMA_NEW_PATH | db/schema.sql | Path to the current schema file in the PR branch. |
DIALECT | postgres | SQL dialect: postgres, mysql, sqlite, mssql, oracle. |
FAIL_ON_BREAKING | false | Set to true to fail the build when breaking changes are detected. |
POST_PR_COMMENT | true | Set to false to skip posting the PR comment. |
SchemaLens works wherever Node.js runs. Pick your platform for a ready-to-use template.
Paste two schemas and see the diff instantly. No signup required.
Open SchemaLens App โก Azure DevOps Wizard