Skip to content

fix(templates): better-auth schema FK type mismatch#91

Merged
plvo merged 1 commit intomainfrom
fix/better-auth-schema
Mar 10, 2026
Merged

fix(templates): better-auth schema FK type mismatch#91
plvo merged 1 commit intomainfrom
fix/better-auth-schema

Conversation

@plvo
Copy link
Copy Markdown
Owner

@plvo plvo commented Mar 10, 2026

Summary

  • Fix foreign key type mismatch between users.id (uuid) and account/session user_id (varchar) columns
  • PostgreSQL user_id columns now use uuid() type to match the users.id column type
  • MySQL columns use varchar(36) which is compatible

Test plan

  • Generate a project with better-auth + drizzle + postgres
  • Run bun run db:push — should succeed without FK constraint errors

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 10, 2026

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

Project Deployment Actions Updated (UTC)
create-faster-www Ready Ready Preview, Comment Mar 10, 2026 11:36am

@plvo plvo merged commit a858089 into main Mar 10, 2026
4 checks passed
@plvo plvo deleted the fix/better-auth-schema branch March 10, 2026 12:24
@github-actions github-actions bot mentioned this pull request Mar 10, 2026
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