Catch breaking database changes in every merge request. Zero config, zero cost โ add schema diff checks to your GitLab 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 GitLab CI
Team members can download the full markdown report from the Build > Artifacts section of any merge request pipeline. The report includes:
Breaking changes like dropped columns, removed indexes, or altered constraints get flagged before merge โ not after deploy.
Every merge request gets a clear schema diff summary posted as a comment. Reviewers see exactly what changed without leaving GitLab.
The full markdown report is attached to every pipeline as an artifact. Download it for compliance docs, audits, or offline review.
Set SKIP_NO_SQL_CHANGE: "true" and the job skips entirely when no .sql files were modified โ saving CI 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.
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, MR comments, and artifact reports. 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 to the repo).
The job compares the schema from your target branch against the schema in the MR. Any drift is surfaced instantly.
Enable POST_MR_COMMENT: "true" and add a GITLAB_TOKEN variable. The job posts a formatted summary directly on the merge request.
| Feature | Free Tier | Pro (optional) |
|---|---|---|
| Schema diff summary | โ | โ |
| Breaking change detection | โ | โ |
| Risk score | โ | โ |
| MR comments | โ | โ |
| Pipeline artifacts | โ | โ |
| Smart skip (no SQL changes) | โ | โ |
| Full migration SQL | First 5 lines | โ Complete script |
| Markdown export | โ | โ |
| JSON export | โ | โ |
| Rate limit | 15/min | 30/min |