[PR #2506] [MERGED] fix: add a default value for generated fields #4345

Closed
opened 2026-03-13 11:42:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2506
Author: @Kinfe123
Created: 5/1/2025
Status: Merged
Merged: 5/1/2025
Merged by: @Kinfe123

Base: mainHead: fix/default-value-on-generation


📝 Commits (4)

📊 Changes

2 files changed (+16 additions, -8 deletions)

View changed files

📝 packages/cli/src/generators/drizzle.ts (+11 -3)
📝 packages/cli/test/__snapshots__/auth-schema.txt (+5 -5)

📄 Description

Closes #2504


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/2506 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 5/1/2025 **Status:** ✅ Merged **Merged:** 5/1/2025 **Merged by:** [@Kinfe123](https://github.com/Kinfe123) **Base:** `main` ← **Head:** `fix/default-value-on-generation` --- ### 📝 Commits (4) - [`c205e20`](https://github.com/better-auth/better-auth/commit/c205e20c0efcea3a025781619bcca422daabcb74) add a default value - [`e5320bd`](https://github.com/better-auth/better-auth/commit/e5320bde90b892608bdbc64da5bf8972811392c9) lint - [`cad07b8`](https://github.com/better-auth/better-auth/commit/cad07b819c1355a22a98126f5f517a96aa257973) undefined values - [`327fbbc`](https://github.com/better-auth/better-auth/commit/327fbbca095920f8704e7352cbf2d0055eb6d536) handle default fn and update snapshot ### 📊 Changes **2 files changed** (+16 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/generators/drizzle.ts` (+11 -3) 📝 `packages/cli/test/__snapshots__/auth-schema.txt` (+5 -5) </details> ### 📄 Description Closes #2504 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 11:42:29 -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#4345