[PR #2698] [CLOSED] Bug: Default value not being set #4445

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2698
Author: @MarkForLoop
Created: 5/18/2025
Status: Closed

Base: mainHead: bug-additional-fields-default


📝 Commits (9)

📊 Changes

6 files changed (+14 additions, -6 deletions)

View changed files

📝 dev/bun/auth.ts (+0 -1)
📝 docs/content/docs/concepts/database.mdx (+1 -1)
📝 packages/better-auth/src/db/field.ts (+0 -3)
📝 packages/better-auth/src/db/get-migration.ts (+9 -0)
📝 packages/better-auth/src/db/to-zod.ts (+3 -0)
📝 packages/cli/src/generators/drizzle.ts (+1 -1)

📄 Description

Issue: #2674


🔄 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/2698 **Author:** [@MarkForLoop](https://github.com/MarkForLoop) **Created:** 5/18/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bug-additional-fields-default` --- ### 📝 Commits (9) - [`5d19acf`](https://github.com/better-auth/better-auth/commit/5d19acf18c18865682ad36b07f0e348871b2d0f8) Bug: Default value not being set - [`e30452b`](https://github.com/better-auth/better-auth/commit/e30452b1ec1a483039ca2017ffa1fd5ac0a99c92) Fix: defaultTo() only expects a primitive value - [`6b8b87d`](https://github.com/better-auth/better-auth/commit/6b8b87d589dba8d7eac6761b387f51128691adb8) . - [`aaf6fa3`](https://github.com/better-auth/better-auth/commit/aaf6fa32367e55465d858c249b0712a8ae6b8383) Docs updated - [`680fed3`](https://github.com/better-auth/better-auth/commit/680fed30cfc5a6d9c1a6826b6ecb19cb71f4337a) Fix: lint - [`3ff8b69`](https://github.com/better-auth/better-auth/commit/3ff8b69302a94df914ac232c1b2b7fda3fef398d) Fixed tests - [`fd419a7`](https://github.com/better-auth/better-auth/commit/fd419a7f6e71e9805bd8852eb03c70f76fee38a8) lint fix - [`2ecfe6f`](https://github.com/better-auth/better-auth/commit/2ecfe6fe365f9ed060885a681acc7d72e96bd011) Fix - [`533ae36`](https://github.com/better-auth/better-auth/commit/533ae3671cd25911e5d5b56b51cf726c70ff28ad) lint ### 📊 Changes **6 files changed** (+14 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `dev/bun/auth.ts` (+0 -1) 📝 `docs/content/docs/concepts/database.mdx` (+1 -1) 📝 `packages/better-auth/src/db/field.ts` (+0 -3) 📝 `packages/better-auth/src/db/get-migration.ts` (+9 -0) 📝 `packages/better-auth/src/db/to-zod.ts` (+3 -0) 📝 `packages/cli/src/generators/drizzle.ts` (+1 -1) </details> ### 📄 Description Issue: [#2674](https://github.com/better-auth/better-auth/issues/2674) --- <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:47:07 -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#4445