[PR #634] [MERGED] fix: Drizzle schema generation custom model name #20307

Closed
opened 2026-04-15 19:36:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/634
Author: @luxaritas
Created: 11/23/2024
Status: Merged
Merged: 11/25/2024
Merged by: @Bekacru

Base: mainHead: fix/drizzle-model-name


📝 Commits (1)

  • 376e125 fix: Drizzle schema generation custom model name

📊 Changes

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

View changed files

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

📄 Description

Providing a custom model name results in errors as the references uses the custom model name, but the actual model definition does not. The drizzle adapter also looks up the custom model name when forming queries, which would also currently not find the model 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/634 **Author:** [@luxaritas](https://github.com/luxaritas) **Created:** 11/23/2024 **Status:** ✅ Merged **Merged:** 11/25/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/drizzle-model-name` --- ### 📝 Commits (1) - [`376e125`](https://github.com/better-auth/better-auth/commit/376e125d23631e8ca701d6480c36968fd32c92b5) fix: Drizzle schema generation custom model name ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/generators/drizzle.ts` (+1 -1) </details> ### 📄 Description Providing a custom model name results in errors as the `references` uses the custom model name, but the actual model definition does not. The drizzle adapter also looks up the custom model name when forming queries, which would also currently not find the model correctly. --- <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-15 19:36:26 -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#20307