[PR #3977] [MERGED] fix(db): improve error handling for unsupported additionalFields on generate #30719

Closed
opened 2026-04-17 21:44:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3977
Author: @Kinfe123
Created: 8/13/2025
Status: Merged
Merged: 11/30/2025
Merged by: @Bekacru

Base: canaryHead: fix/reject-unsupported-additionalFields


📝 Commits (1)

  • 2578fb1 fix: improve error handling for unsupported additionalFields types across generators

📊 Changes

3 files changed (+47 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/db/get-migration.ts (+5 -0)
📝 packages/cli/src/generators/drizzle.ts (+9 -1)
📝 packages/cli/test/generate.test.ts (+33 -0)

📄 Description

closes #3965


Summary by cubic

Improved error handling for unsupported additionalFields types in schema generation, so users now get clear error messages when using invalid field types.

  • Bug Fixes
    • Added checks to throw errors for unsupported field types in migration and schema generators.
    • Added tests to verify errors are thrown for invalid additionalFields types.

Written for commit 2578fb1bd6. Summary will update automatically on new commits.


🔄 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/3977 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/13/2025 **Status:** ✅ Merged **Merged:** 11/30/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/reject-unsupported-additionalFields` --- ### 📝 Commits (1) - [`2578fb1`](https://github.com/better-auth/better-auth/commit/2578fb1bd69fa647889f4c12cb9af362fa600b93) fix: improve error handling for unsupported additionalFields types across generators ### 📊 Changes **3 files changed** (+47 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/db/get-migration.ts` (+5 -0) 📝 `packages/cli/src/generators/drizzle.ts` (+9 -1) 📝 `packages/cli/test/generate.test.ts` (+33 -0) </details> ### 📄 Description closes #3965 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Improved error handling for unsupported additionalFields types in schema generation, so users now get clear error messages when using invalid field types. - **Bug Fixes** - Added checks to throw errors for unsupported field types in migration and schema generators. - Added tests to verify errors are thrown for invalid additionalFields types. <sup>Written for commit 2578fb1bd69fa647889f4c12cb9af362fa600b93. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <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-04-17 21:44:50 -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#30719