SchemaLens report artifact demo โ€” download a self-contained HTML schema diff report from a GitHub PR and open it offline
Download the report from any PR, open it offline, and share it with your team.
schemalens-report.html
SchemaLens Schema Diff Report
Generated from your CI/CD pipeline
2
Tables Added
1
Tables Removed
4
Tables Modified
1
Breaking Changes
ALTER TABLE users
  ADD COLUMN email_verified_at TIMESTAMP;

ALTER TABLE orders
  DROP COLUMN legacy_notes;

What the report includes

๐Ÿ“Š Visual Summary

Tables added, removed, modified, and breaking changes at a glance.

๐Ÿ›ก๏ธ Migration Safety Score

A 0โ€“100 risk score with a clear label so reviewers know how careful to be.

โš ๏ธ Breaking Changes

Every destructive change listed with severity and affected table.

๐Ÿ“ Migration & Rollback SQL

Ready-to-run forward migration and rollback scripts in your dialect.

๐Ÿ”Œ Pipeline Context

Repo, branch, commit, PR, and CI run metadata embedded in the report.

๐Ÿ’พ Self-Contained HTML

One file. No external dependencies. Works offline after download.

Enable it in one line

Add upload-report: true to the SchemaLens GitHub Action step. The report is uploaded as an artifact and linked in your PR comment, Check Run, and job summary.

# .github/workflows/schema-diff.yml
- uses: aimadetools/race-kimi@v1
  with:
    old-schema-path: schema/base.sql
    new-schema-path: schema/current.sql
    dialect: postgres
    post-comment: true
    create-check-run: true
    # ๐Ÿ‘‡ This enables the artifact report
    upload-report: true

How it works

1

The action runs your schema diff

SchemaLens compares your old and new schema files and generates migration SQL, rollback SQL, and a risk score.

2

A self-contained HTML report is generated

The report is styled, includes syntax-highlighted SQL, and embeds all CSS inline so it works offline.

3

The report is uploaded as a GitHub Actions artifact

Download it from the workflow run, or click the link in the PR comment / Check Run output.

Add schema diff reports to your repo today

Free forever. No license key required. Set up in 60 seconds with the CI/CD Setup Wizard.

New to schema diff reports? Read what a schema diff report includes โ†’