[PR #718] [MERGED] fix (prisma): the prisma schema generator should add @db.text for MySQL and add many to many fields #11695

Closed
opened 2026-04-13 07:57:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/718
Author: @Bekacru
Created: 12/2/2024
Status: Merged
Merged: 12/2/2024
Merged by: @Bekacru

Base: mainHead: fix/prisma-generator


📝 Commits (1)

  • b63e93c fix: prisma schema generator should add @db.text for mysql and generate many fields

📊 Changes

8 files changed (+248 additions, -11 deletions)

View changed files

📝 packages/better-auth/src/plugins/admin/admin.test.ts (+1 -0)
📝 packages/cli/src/generators/drizzle.ts (+2 -6)
📝 packages/cli/src/generators/prisma.ts (+47 -0)
📝 packages/cli/test/__snapshots__/schema-mongodb.prisma (+4 -2)
packages/cli/test/__snapshots__/schema-mysql.prisma (+82 -0)
packages/cli/test/__snapshots__/schema.prisma (+82 -0)
📝 packages/cli/test/__snapshots__/schema.txt (+4 -1)
📝 packages/cli/test/generate.test.ts (+26 -2)

📄 Description

closes #689


🔄 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/718 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/2/2024 **Status:** ✅ Merged **Merged:** 12/2/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/prisma-generator` --- ### 📝 Commits (1) - [`b63e93c`](https://github.com/better-auth/better-auth/commit/b63e93cb20cdb7bb103db4f929e7634356e77b68) fix: prisma schema generator should add @db.text for mysql and generate many fields ### 📊 Changes **8 files changed** (+248 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/admin/admin.test.ts` (+1 -0) 📝 `packages/cli/src/generators/drizzle.ts` (+2 -6) 📝 `packages/cli/src/generators/prisma.ts` (+47 -0) 📝 `packages/cli/test/__snapshots__/schema-mongodb.prisma` (+4 -2) ➕ `packages/cli/test/__snapshots__/schema-mysql.prisma` (+82 -0) ➕ `packages/cli/test/__snapshots__/schema.prisma` (+82 -0) 📝 `packages/cli/test/__snapshots__/schema.txt` (+4 -1) 📝 `packages/cli/test/generate.test.ts` (+26 -2) </details> ### 📄 Description closes #689 --- <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-13 07:57:22 -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#11695