[PR #664] [MERGED] feat(cli): account for usePlural option in drizzle schema generation #3423

Closed
opened 2026-03-13 10:53:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/664
Author: @enchart
Created: 11/26/2024
Status: Merged
Merged: 11/26/2024
Merged by: @Bekacru

Base: mainHead: feat/generate-drizzle-use-plural


📝 Commits (1)

  • ea6d271 feat(cli): account for usePlural option in drizzle schema generation

📊 Changes

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

View changed files

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

📄 Description

Using the usePlural option in the Drizzle adapter options does not affect the behaviour of the generate CLI command.
This PR addresses this and makes the CLI command pluralize the generated model names when the usePlural option is true.


🔄 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/664 **Author:** [@enchart](https://github.com/enchart) **Created:** 11/26/2024 **Status:** ✅ Merged **Merged:** 11/26/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/generate-drizzle-use-plural` --- ### 📝 Commits (1) - [`ea6d271`](https://github.com/better-auth/better-auth/commit/ea6d271187260dd13754dcadb87cba5b9efd7bf6) feat(cli): account for usePlural option in drizzle schema generation ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/generators/drizzle.ts` (+3 -2) </details> ### 📄 Description Using the `usePlural` option in the Drizzle adapter options does not affect the behaviour of the `generate` CLI command. This PR addresses this and makes the CLI command pluralize the generated model names when the `usePlural` option is `true`. --- <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 10:53:15 -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#3423