Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 19, 2025

This PR contains the following updates:

Package Change Age Confidence
@prisma/client (source) 6.19.0 -> 7.0.0 age confidence
prisma (source) 6.19.0 -> 7.0.0 age confidence

Release Notes

prisma/prisma (@​prisma/client)

v7.0.0

Compare Source

prisma/prisma (prisma)

v7.0.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@greptile-apps
Copy link

greptile-apps bot commented Nov 19, 2025

Skipped: This PR was opened by one of your excluded authors: (renovate[bot])

@github-actions
Copy link
Contributor

github-actions bot commented Nov 19, 2025

🎭 Playwright E2E Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit d75cbb9.

♻️ This comment has been updated with latest results.

@renovate renovate bot force-pushed the renovate/major-prisma-monorepo branch from 5491cbf to 5e41976 Compare November 19, 2025 17:21
@renovate renovate bot changed the title Update prisma monorepo to v7 (major) fix(deps): update prisma monorepo to v7 (major) Nov 19, 2025
@coderabbitai
Copy link

coderabbitai bot commented Nov 19, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch renovate/major-prisma-monorepo

Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/major-prisma-monorepo branch 4 times, most recently from 326ee5e to 3a780f8 Compare November 19, 2025 20:45
@linusnorton
Copy link
Collaborator

@claude fix this up, error is error: The datasource property url is no longer supported in schema files. Move connection URLs for Migrate to prisma.config.ts and pass either adapter for a direct database connection or accelerateUrl for Accelerate to the PrismaClient constructor. See https://pris.ly/d/config-datasource and https://pris.ly/d/prisma7-client-config

@renovate
Copy link
Contributor Author

renovate bot commented Nov 19, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@linusnorton
Copy link
Collaborator

@claude you tried to fix prisma after the upgrade but there is now this error: @hmcts/postgres:build
cache miss, executing 99d9f75118c0d782
Error: @hmcts/postgres#build: command (/home/runner/work/cath-service/cath-service/apps/postgres) /usr/local/bin/yarn run build exited (2)
✅ Prisma schema collated successfully!
📊 Total: 0 models, 0 enums
Error: src/index.ts(10,5): error TS2322: Type 'string | undefined' is not assignable to type 'never'.
Type 'undefined' is not assignable to type 'never'.
Error: command finished with error: command (/home/runner/work/cath-service/cath-service/apps/postgres) /usr/local/bin/yarn run build exited (2)

@linusnorton
Copy link
Collaborator

@claude this prisma upgrade is still broken even after your changes:

@hmcts/postgres:build
Error: @hmcts/postgres#build: command (/home/runner/work/cath-service/cath-service/apps/postgres) /usr/local/bin/yarn run build exited (2)
cache miss, executing f91ebe4138d2534f
✅ Prisma schema collated successfully!
📊 Total: 0 models, 0 enums
Error: src/index.ts(9,20): error TS2345: Argument of type '{ log: ("query" | "warn" | "error")[]; datasourceUrl?: string | undefined; }' is not assignable to parameter of type 'Subset<{ log: ("query" | "warn" | "error")[]; datasourceUrl?: string | undefined; }, PrismaClientOptions>'.
Types of property 'datasourceUrl' are incompatible.
Type 'string | undefined' is not assignable to type 'undefined'.
Type 'string' is not assignable to type 'undefined'.
Error: command finished with error: command (/home/runner/work/cath-service/cath-service/apps/postgres) /usr/local/bin/yarn run build exited (2)
ERROR run failed: command exited (2)

Tasks: 13 successful, 14 total
Cached: 12 cached, 14 total
Time: 2.909s
Failed: @hmcts/postgres#build

Error: Process completed with exit code 2.

Before committing and pushing, please run the tests to make sure it's working

@linusnorton
Copy link
Collaborator

@claude sort out the merge conflicts on this branch

Prisma 7 requires database connections to use driver adapters instead of
the datasourceUrl parameter.

Changes:
- Upgrade @prisma/client and prisma to v7.0.0
- Add @prisma/adapter-pg and pg dependencies
- Remove url from datasource in schema.prisma (no longer supported in v7)
- Update PrismaClient initialization to use PrismaPg adapter
- Handle test environments without DATABASE_URL gracefully

The adapter is now created with DATABASE_URL when available. For test
environments where no database is present, the client is undefined.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@github-actions github-actions bot force-pushed the renovate/major-prisma-monorepo branch from e3d4be1 to c371834 Compare November 25, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant