Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Upgrades Prisma ORM from v6 to v7 following the official migration guide. Prisma 7 requires datasource URLs in
prisma.config.tsinstead ofschema.prisma, and uses database adapters for connections.Fixes #(issue)
Dependencies:
@prisma/client: ^6.3.0 → ^7.0.0prisma: ^6.2.1 → ^7.0.0@prisma/adapter-pg: ^7.0.0Changes:
prisma.config.tswith datasource configurationPrismaServiceto usePrismaPgadapter for connectionsmetricspreview feature from schema$metricsAPI from metrics controller (deprecated in 6.14+, removed in 7.0)Type of change
How Has This Been Tested?
All existing tests (29 unit + 1 e2e) pass. Coverage maintained at 92.56%.
Checklist
Further comments
Connection logic unchanged - PgBouncer support and schema selection work identically. Metrics endpoint now returns application metrics only (Prisma-specific metrics removed per deprecation).
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint.prisma.io/usr/local/bin/node /home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/prisma/build/child {"product":"prisma","version":"6.18.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-20T03:23:57Z","project_hash":"65cbeaa9","cli_path":"/home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/.bin/prisma","cli_path_hash":"8cb6b250","endpoint":"REDACTED","disable":false,"arch":"x64","os":"linux","node_version":"v20.19.5","ci":true,"ci_name":"GitHub Actions","command":"generate --postinstall \"UNABLE_TO_FIND_POSTINSTALL_TRIGGER__ENVAR_MISSING\"","schema_providers":["postgresql"],"schema_preview_features":["metrics"],"schema_generators_providers":["prisma-client-js"],"cache_file":"/home/REDACTED/.cache/checkpoint-nodejs/prisma-8cb6b250","cache_duration":43200000,"remind_duration":172800000,"force":false,"timeout":5000,"unref":true,"child_path":"/home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/prisma/build/child","client_event_id":"","previous_client_event_id":"","check_if_update_available":true}(dns block)/usr/local/bin/node /home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/prisma/build/child {"product":"prisma","version":"6.18.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-20T03:24:07Z","project_hash":"65cbeaa9","cli_path":"/home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/.bin/prisma","cli_path_hash":"8cb6b250","endpoint":"REDACTED","disable":false,"arch":"x64","os":"linux","node_version":"v20.19.5","ci":true,"ci_name":"GitHub Actions","command":"generate","schema_providers":["postgresql"],"schema_preview_features":["metrics"],"schema_generators_providers":["prisma-client-js"],"cache_file":"/home/REDACTED/.cache/checkpoint-nodejs/prisma-8cb6b250","cache_duration":43200000,"remind_duration":172800000,"force":false,"timeout":5000,"unref":true,"child_path":"/home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/prisma/build/child","client_event_id":"","previous_client_event_id":"","check_if_update_available":true}(dns block)/usr/local/bin/node /home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/prisma/build/child {"product":"prisma","version":"7.0.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-20T03:27:30Z","project_hash":"65cbeaa9","cli_path":"/home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/.bin/prisma","cli_path_hash":"8cb6b250","endpoint":"REDACTED","disable":false,"arch":"x64","os":"linux","node_version":"v20.19.5","ci":true,"ci_name":"GitHub Actions","command":"generate","schema_providers":[],"schema_preview_features":[],"schema_generators_providers":[],"cache_file":"/home/REDACTED/.cache/checkpoint-nodejs/prisma-8cb6b250","cache_duration":43200000,"remind_duration":172800000,"force":false,"timeout":5000,"unref":true,"child_path":"/home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/prisma/build/child","client_event_id":"","previous_client_event_id":"","check_if_update_available":true}(dns block)scarf.shnode ./report.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.