[PR #3826] [MERGED] fix/overwrite-only-when-prisma-schema-exists #5029

Closed
opened 2026-03-13 12:08:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3826
Author: @frectonz
Created: 8/6/2025
Status: Merged
Merged: 8/6/2025
Merged by: @Bekacru

Base: canaryHead: fix/overwrite-only-when-prisma-schema-exists


📝 Commits (1)

  • a499380 fix: only show the overwrite message when the schema file exists and the code has changed

📊 Changes

2 files changed (+8 additions, -5 deletions)

View changed files

📝 packages/cli/src/commands/generate.ts (+3 -3)
📝 packages/cli/src/generators/prisma.ts (+5 -2)

📄 Description

This PR fixes a bug in which the overwrite message was being shown even when the prisma schema didn't exist.


Summary by cubic

Fixed a bug where the overwrite confirmation was shown even if the Prisma schema file did not exist.

  • Bug Fixes
  • Now shows the overwrite message only when the schema file exists and changes are detected.

🔄 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/3826 **Author:** [@frectonz](https://github.com/frectonz) **Created:** 8/6/2025 **Status:** ✅ Merged **Merged:** 8/6/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/overwrite-only-when-prisma-schema-exists` --- ### 📝 Commits (1) - [`a499380`](https://github.com/better-auth/better-auth/commit/a499380f16b55d2523b4862da1e464ed5f615524) fix: only show the overwrite message when the schema file exists and the code has changed ### 📊 Changes **2 files changed** (+8 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/commands/generate.ts` (+3 -3) 📝 `packages/cli/src/generators/prisma.ts` (+5 -2) </details> ### 📄 Description This PR fixes a bug in which the overwrite message was being shown even when the prisma schema didn't exist. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed a bug where the overwrite confirmation was shown even if the Prisma schema file did not exist. - **Bug Fixes** - Now shows the overwrite message only when the schema file exists and changes are detected. <!-- 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-03-13 12:08:33 -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#5029