[PR #3512] [MERGED] fix(drizzle-cli): check for undefined defaultValue instead of truthy value #4865

Closed
opened 2026-03-13 12:02:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3512
Author: @eni4sure
Created: 7/21/2025
Status: Merged
Merged: 8/20/2025
Merged by: @Bekacru

Base: canaryHead: fix/patch-1


📝 Commits (1)

  • 45b047e fix(drizzle-cli): check for undefined defaultValue instead of truthy value

📊 Changes

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

View changed files

📝 packages/cli/src/generators/drizzle.ts (+4 -1)
📝 packages/cli/test/__snapshots__/auth-schema-number-id.txt (+1 -1)
📝 packages/cli/test/__snapshots__/auth-schema.txt (+1 -1)

📄 Description

Summary by cubic

Fixed defaultValue check in the Drizzle schema generator to handle values like false or 0 correctly.


🔄 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/3512 **Author:** [@eni4sure](https://github.com/eni4sure) **Created:** 7/21/2025 **Status:** ✅ Merged **Merged:** 8/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/patch-1` --- ### 📝 Commits (1) - [`45b047e`](https://github.com/better-auth/better-auth/commit/45b047e74c3c4b2370bed22bfe493601ce874571) fix(drizzle-cli): check for undefined defaultValue instead of truthy value ### 📊 Changes **3 files changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/generators/drizzle.ts` (+4 -1) 📝 `packages/cli/test/__snapshots__/auth-schema-number-id.txt` (+1 -1) 📝 `packages/cli/test/__snapshots__/auth-schema.txt` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixed defaultValue check in the Drizzle schema generator to handle values like false or 0 correctly. <!-- 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-03-13 12:02:28 -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#4865