Skip to content

fix: sync drizzle migration state and add ci schema check#70

Merged
thomasblaymire merged 3 commits into
mainfrom
fix/drizzle-migration-state
Mar 16, 2026
Merged

fix: sync drizzle migration state and add ci schema check#70
thomasblaymire merged 3 commits into
mainfrom
fix/drizzle-migration-state

Conversation

@thomasblaymire

Copy link
Copy Markdown
Owner

Summary

  • Add missing 0002_snapshot.json and journal entry for the manually-created 0002_api_key_hashing migration so drizzle-kit generate correctly tracks schema state
  • Add schema-check CI job that runs drizzle-kit generate and fails if schema and migrations are out of sync
  • Gate schema-check in the ci-success required check

Test plan

  • drizzle-kit generate locally reports "No schema changes, nothing to migrate"
  • CI schema-check job passes on this PR
  • Verify future schema changes without a migration are caught by CI

Add missing 0002_snapshot.json and journal entry for the manually-created
api_key_hashing migration so drizzle-kit generate works correctly.
Add schema-check CI job that detects schema drift in PRs.
@vercel

vercel Bot commented Mar 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
switchflag-app Ready Ready Preview, Comment Mar 16, 2026 8:44pm
switchflag-web Ready Ready Preview, Comment Mar 16, 2026 8:44pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
switchflag-docs Skipped Skipped Mar 16, 2026 8:44pm

@github-actions

github-actions Bot commented Mar 16, 2026

Copy link
Copy Markdown

Preview Environment

Role Email Password
Owner e2e-owner@test.local TestPassword123!
Member e2e-member@test.local TestPassword123!
Admin e2e-admin@test.local TestPassword123!

Preview URL: https://switchflag-8lnif44n0-tom-blaymires-projects-d8765916.vercel.app

Database: switchflag-pr-70

@codecov

codecov Bot commented Mar 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Suppresses the BetterAuthError warning during Next.js static page
generation in CI. No real auth happens during build.
The onboarding wizard triggers for owners with zero projects, covering
the entire viewport with z-[100] and blocking button clicks. Seed a
default project + 3 environments so the wizard never appears.
@vercel vercel Bot temporarily deployed to Preview – switchflag-docs March 16, 2026 20:42 Inactive
@thomasblaymire thomasblaymire merged commit bc0fe92 into main Mar 16, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant