Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The Prisma v7 upgrade is incomplete. The schema uses a deprecated provider and is missing the output field, and the client is instantiated without a required driver adapter.
Severity: CRITICAL

Suggested Fix

In prisma/schema.prisma, change the provider to "prisma-client" and add the output field to the generator block (e.g., output = "./generated/client"). Then, in src/lib/setup/prisma.ts, update the new PrismaClient() instantiation to include the necessary driver adapter for your database environment.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: package.json#L27

Potential issue: The upgrade to Prisma v7 is incomplete, which will cause the
application to fail. The `prisma/schema.prisma` file still uses the deprecated `provider
= "prisma-client-js"` and is missing the required `output` field in the generator block.
Additionally, the Prisma client is instantiated in `src/lib/setup/prisma.ts` via `new
PrismaClient()` without the required driver adapter for Prisma v7. These configuration
and instantiation errors will prevent the Prisma client from being generated correctly
and will lead to runtime failures when the application attempts to start or connect to
the database.

Did we get this right? 👍 / 👎 to inform future reviews.

"@discordjs/builders": "^1.10.1",
"@discordjs/collection": "^2.1.1",
"@prisma/client": "^6.8.2",
"@prisma/client": "^7.6.0",

"@sapphire/result": "^2.7.2",
"@sapphire/utilities": "^3.18.2",
Expand Down Expand Up @@ -59,7 +59,7 @@
"eslint-plugin-prettier": "^5.2.6",
"lint-staged": "^16.1.0",
"prettier": "^3.5.3",
"prisma": "^6.8.2",
"prisma": "^7.6.0",
"taze": "^19.9.2",
"tsdown": "^0.17.2",
"@rollup/plugin-alias": "^6.0.0",
Expand Down
Loading
Loading