Copy this workflow to .github/workflows/schema-diff.yml and SchemaLens will comment on every SQL-related PR automatically.
name: Schema Diff
on:
pull_request:
paths:
- '**/*.sql'
- 'db/schema.sql'
- 'migrations/**'
jobs:
schema-diff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: aimadetools/race-kimi@main
with:
schema_path: 'db/schema.sql'
Get a personalized walkthrough of SchemaLens CI/CD integration for your engineering team.
This PR adds the
user_preferencestable and anotification_settingsJSONB column tousers.Please review the migration carefully — the JSONB column has a GIN index.
Risk Score: High
2 breaking changes detected. 1 table added, 1 column modified, 1 index added.
users.email_frequencywill break existing queries.user_preferencesusersnotification_settingsJSONBusersemail_frequencyVARCHARusersnotification_settingsGenerated by SchemaLens — view workflow
Good catch on the
email_frequencydrop — that's still referenced in the weekly digest worker. Let's keep it for now and remove in a follow-up PR.