[PR #6234] [MERGED] fix(cli): prevent duplicate index creation in Prisma schema generation #23436

Closed
opened 2026-04-15 21:43:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6234
Author: @rovertrack
Created: 11/23/2025
Status: Merged
Merged: 11/24/2025
Merged by: @Bekacru

Base: canaryHead: fix/cliduplicateindex


📝 Commits (2)

  • 9353e1c fix(cli): prevent duplicate index creation in Prisma schema generation
  • a5e6468 fix(cli): correct index existence check in Prisma schema generation

📊 Changes

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

View changed files

📝 packages/cli/src/generators/prisma.ts (+11 -0)

📄 Description

solves #6233


Summary by cubic

Prevents duplicate index creation in Prisma schema generation by skipping indexes that already exist on the model. Fixes #6233 and avoids repeated index lines across subsequent CLI runs.

Written for commit a5e64688df. Summary will update automatically on new commits.


🔄 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/6234 **Author:** [@rovertrack](https://github.com/rovertrack) **Created:** 11/23/2025 **Status:** ✅ Merged **Merged:** 11/24/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/cliduplicateindex` --- ### 📝 Commits (2) - [`9353e1c`](https://github.com/better-auth/better-auth/commit/9353e1c65f6167c9ce4ff3da90bc9efbfb197970) fix(cli): prevent duplicate index creation in Prisma schema generation - [`a5e6468`](https://github.com/better-auth/better-auth/commit/a5e64688df15f6b0d34fc7b3f907a5d016049639) fix(cli): correct index existence check in Prisma schema generation ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/generators/prisma.ts` (+11 -0) </details> ### 📄 Description solves **#6233** <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Prevents duplicate index creation in Prisma schema generation by skipping indexes that already exist on the model. Fixes #6233 and avoids repeated index lines across subsequent CLI runs. <sup>Written for commit a5e64688df15f6b0d34fc7b3f907a5d016049639. Summary will update automatically on new commits.</sup> <!-- 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-04-15 21:43:13 -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#23436