[PR #2692] [CLOSED] Feat: Added in decimal type to additional field #4442

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

📋 Pull Request Information

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

Base: mainHead: decimal-type-additional-fields


📝 Commits (8)

📊 Changes

9 files changed (+258 additions, -12 deletions)

View changed files

📝 dev/bun/auth.ts (+0 -1)
📝 packages/better-auth/src/db/field.ts (+24 -11)
📝 packages/better-auth/src/db/get-migration.ts (+18 -0)
📝 packages/better-auth/src/db/to-zod.ts (+7 -0)
📝 packages/cli/src/generators/drizzle.ts (+22 -0)
📝 packages/cli/src/generators/prisma.ts (+3 -0)
packages/cli/test/__snapshots__/auth-schema-with-decimal-precision.txt (+56 -0)
packages/cli/test/__snapshots__/auth-schema-with-decimal.txt (+56 -0)
📝 packages/cli/test/generate.test.ts (+72 -0)

📄 Description

Issue #2691


🔄 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/2692 **Author:** [@MarkForLoop](https://github.com/MarkForLoop) **Created:** 5/18/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `decimal-type-additional-fields` --- ### 📝 Commits (8) - [`068fc8f`](https://github.com/better-auth/better-auth/commit/068fc8fb4cceee3563f69c46da91589a94465fe8) added in decimal column - [`8264fbf`](https://github.com/better-auth/better-auth/commit/8264fbf0341164da3e06ae2d5a1cc84361d5cd3d) Fix: lint issues - [`07d49f8`](https://github.com/better-auth/better-auth/commit/07d49f8427c46eb8ce01a0a837d553f24305ccb6) Refactor: updated to-zod.ts - [`fe5ea92`](https://github.com/better-auth/better-auth/commit/fe5ea9293ba7385ee3beb91f1695f7cee84bd87c) Added test - [`620e22d`](https://github.com/better-auth/better-auth/commit/620e22d79f275b3b8f39da22bf50b4574b103d3a) Test: added precision/scale test - [`1f50a92`](https://github.com/better-auth/better-auth/commit/1f50a9217f49fd1b2e56dd0e692c07b03b822c6d) format iss - [`a4ec468`](https://github.com/better-auth/better-auth/commit/a4ec4682b7b9d91ac1d300fe05824af00a643de8) Fix: lint - [`4d9a844`](https://github.com/better-auth/better-auth/commit/4d9a844ef3d4fd695f648797389d35402b5e692b) Revert "Fix: lint" ### 📊 Changes **9 files changed** (+258 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `dev/bun/auth.ts` (+0 -1) 📝 `packages/better-auth/src/db/field.ts` (+24 -11) 📝 `packages/better-auth/src/db/get-migration.ts` (+18 -0) 📝 `packages/better-auth/src/db/to-zod.ts` (+7 -0) 📝 `packages/cli/src/generators/drizzle.ts` (+22 -0) 📝 `packages/cli/src/generators/prisma.ts` (+3 -0) ➕ `packages/cli/test/__snapshots__/auth-schema-with-decimal-precision.txt` (+56 -0) ➕ `packages/cli/test/__snapshots__/auth-schema-with-decimal.txt` (+56 -0) 📝 `packages/cli/test/generate.test.ts` (+72 -0) </details> ### 📄 Description Issue [#2691](https://github.com/better-auth/better-auth/issues/2691) --- <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:46:56 -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#4442