[PR #2212] [CLOSED] fix: Drizzle schema generate reference mode doesnt use custom name #29801

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2212
Author: @ping-maxwell
Created: 4/10/2025
Status: Closed

Base: mainHead: fix/drizzle-schema/reference-custom-names


📝 Commits (1)

  • 617840a fix: Drizzle schema generate reference mode doesnt use custom name

📊 Changes

1 file changed (+10 additions, -5 deletions)

View changed files

📝 packages/cli/src/generators/drizzle.ts (+10 -5)

📄 Description

When generating a schema in drizzle, any reference fields to other models don't take into account if the given model name had been customized by the user's BA config. This PR fixes this.


🔄 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/2212 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 4/10/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/drizzle-schema/reference-custom-names` --- ### 📝 Commits (1) - [`617840a`](https://github.com/better-auth/better-auth/commit/617840afdd5533e11429844e1e0f37e800fe3861) fix: Drizzle schema generate reference mode doesnt use custom name ### 📊 Changes **1 file changed** (+10 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/generators/drizzle.ts` (+10 -5) </details> ### 📄 Description When generating a schema in drizzle, any reference fields to other models don't take into account if the given model name had been customized by the user's BA config. This PR fixes this. --- <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:03:58 -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#29801