Skip to content

Upgrade Prisma adapter to v7#70

Closed
Copilot wants to merge 4 commits intomasterfrom
copilot/upgrade-prisma-adapter-v7-again
Closed

Upgrade Prisma adapter to v7#70
Copilot wants to merge 4 commits intomasterfrom
copilot/upgrade-prisma-adapter-v7-again

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Upgrades Prisma dependencies from v6 to v7 (latest stable). Addresses Prisma v7's breaking change where datasource URLs are no longer supported in schema files.

Changes

  • Dependencies: Updated @prisma/client and prisma to ^7.0.0 in both devDependencies and peerDependencies
  • Schema: Removed url property from datasource in prisma/schema.prisma (required by Prisma v7)
  • Configuration: Added prisma.config.ts for database connection and CLI operations
  • Documentation: Updated README with Prisma v7 setup instructions

Migration for Users

Users upgrading will need to:

  1. Remove url from their schema datasource:
datasource db {
  provider = "mysql"  // url property no longer allowed
}
  1. Create prisma.config.ts in project root:
import { defineConfig } from 'prisma/config';

export default defineConfig({
  schema: 'prisma/schema.prisma',
  datasource: {
    url: process.env['DATABASE_URL'],
  },
});

The adapter API remains unchanged - users can continue passing PrismaClient instances as before.

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
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/prisma-adapter/prisma-adapter/node_modules/prisma/build/child {"product":"prisma","version":"6.0.0","cli_install_type":"local","information":"","local_timestamp":"2026-01-19T13:01:27Z","project_hash":"16819a9e","cli_path":"/home/REDACTED/work/prisma-adapter/prisma-adapter/node_modules/prisma/build/index.js","cli_path_ (dns block)
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/prisma-adapter/prisma-adapter/node_modules/prisma/build/child {"product":"prisma","version":"6.0.0","cli_install_type":"local","information":"","local_timestamp":"2026-01-19T13:01:36Z","project_hash":"16819a9e","cli_path":"/home/REDACTED/work/prisma-adapter/prisma-adapter/node_modules/.bin/prisma","cli_path_hash":"a47 (dns block)
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/prisma-adapter/prisma-adapter/node_modules/prisma/build/child {"product":"prisma","version":"7.2.0","cli_install_type":"local","information":"","local_timestamp":"2026-01-19T13:03:16Z","project_hash":"16819a9e","cli_path":"/home/REDACTED/work/prisma-adapter/prisma-adapter/node_modules/.bin/prisma","cli_path_hash":"a47 (dns block)
  • https://api.github.com/repos/prisma/prisma/releases
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • www.prisma.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[feature] upgrate prisma adapter to v7</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)

@hsluoyz @nodece @Shivansh-yadav13

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@hsluoyz
Copy link
Member

hsluoyz commented Jan 19, 2026

@nodece @Shivansh-yadav13 please review

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@nomeguy nomeguy marked this pull request as ready for review January 19, 2026 12:58
Copilot AI and others added 3 commits January 19, 2026 13:02
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade Prisma adapter to version 7 Upgrade Prisma adapter to v7 Jan 19, 2026
Copilot AI requested a review from nomeguy January 19, 2026 13:12
@nomeguy nomeguy closed this Jan 19, 2026
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.

[feature] upgrate prisma adapter to v7

4 participants