Migration Safety Score Badge
Embed a live shield in your README or PR that tells everyone how safe your database migration is — at a glance.
1. Set your score
Use the slider or paste a SchemaLens diff URL. The badge color updates automatically.
0 — Risky
85
100 — Safe
2. Preview
3. Copy to README
[](https://schemalens.tech)
<a href="https://schemalens.tech"><img src="https://schemalens.tech/api/migration-safety-badge?score=85" alt="Migration Safety Score"></a>
Example Badges
Safe migration
?score=94
Caution
?score=72
Risky
?score=38
Flat-square style
?score=85&style=flat-square
How It Works
- Run a schema diff in SchemaLens
- We analyze breaking changes, warnings, and migration risk
- Copy the badge from the "Safety" tab in the share modal
- Paste the Markdown into your PR description or README
- The badge updates when you change the
?score=parameter
Want automatic safety scores in every PR?
Add the SchemaLens GitHub Action to catch breaking schema changes and post the safety score as a PR comment.
GitHub Action → CI/CD Setup Wizard →