[PR #8614] fix(cli): treat omitted required as true in Drizzle and Prisma generators #16346

Closed
opened 2026-04-13 10:29:57 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/8614

State: closed
Merged: Yes


Fields with omitted required (which defaults to true per DBFieldAttributeConfig) were incorrectly treated as nullable due to a falsy check on undefined.

https://github.com/better-auth/better-auth/blob/canary/packages/core/src/db/type.ts#L185-L189

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8614 **State:** closed **Merged:** Yes --- Fields with omitted required (which defaults to true per DBFieldAttributeConfig) were incorrectly treated as nullable due to a falsy check on undefined. https://github.com/better-auth/better-auth/blob/canary/packages/core/src/db/type.ts#L185-L189
GiteaMirror added the pull-request label 2026-04-13 10:29:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16346