Skip to content

Sync Prisma CLI to 7.3.0 and migrate to Prisma 7 adapter pattern#12

Merged
darwingtx merged 3 commits intodependabot/npm_and_yarn/prisma/client-7.3.0from
copilot/sub-pr-10
Jan 28, 2026
Merged

Sync Prisma CLI to 7.3.0 and migrate to Prisma 7 adapter pattern#12
darwingtx merged 3 commits intodependabot/npm_and_yarn/prisma/client-7.3.0from
copilot/sub-pr-10

Conversation

Copy link

Copilot AI commented Jan 26, 2026

Addresses version mismatch between @prisma/client (7.3.0) and prisma CLI (6.17.0) identified in PR #10. Prisma 7 requires schema and client configuration changes.

Changes

  • Dependencies: Upgraded prisma to ^7.3.0, added @prisma/adapter-pg, pg, and @types/pg
  • Schema: Removed deprecated url property from datasource block (Prisma 7 requirement)
  • Client Configuration: Migrated to adapter pattern with connection pool management
export class PrismaService extends PrismaClient {
  private readonly pool: Pool;

  constructor() {
    const databaseUrl = process.env.DATABASE_URL;
    if (!databaseUrl) {
      throw new Error('DATABASE_URL environment variable is not set');
    }
    
    const pool = new Pool({ connectionString: databaseUrl });
    super({ adapter: new PrismaPg(pool) });
    this.pool = pool;
  }

  async onModuleDestroy() {
    await this.$disconnect();
    await this.pool.end();
  }
}

Migration Context

Prisma 7 removed support for url in schema files. Direct database connections now require adapters (@prisma/adapter-pg for PostgreSQL) configured via the PrismaClient constructor.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 26, 2026 03:37
Co-authored-by: darwingtx <79672629+darwingtx@users.noreply.github.com>
…vice

Co-authored-by: darwingtx <79672629+darwingtx@users.noreply.github.com>
Copy link
Author

Copilot AI commented Jan 26, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

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/LeetCodeStreak-API/LeetCodeStreak-API/node_modules/.pnpm/prisma@7.3.0_@types&#43;react@19.2.9_react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;7.3.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-01-26T03:34:19Z&#34;,&#34;project_hash&#34;:&#34;864a72d0&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/LeetCodeStreak-API/LeetCodeStreak-API/node_modules/prisma/build/index.js&#34;,&#34;c (dns block)
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/LeetCodeStreak-API/LeetCodeStreak-API/node_modules/.pnpm/prisma@7.3.0_@types&#43;react@19.2.9_react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;7.3.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-01-26T03:34:45Z&#34;,&#34;project_hash&#34;:&#34;864a72d0&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/LeetCodeStreak-API/LeetCodeStreak-API/node_modules/prisma/build/index.js&#34;,&#34;c (dns block)
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/LeetCodeStreak-API/LeetCodeStreak-API/node_modules/.pnpm/prisma@7.3.0_@types&#43;react@19.2.9_react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;7.3.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-01-26T03:35:24Z&#34;,&#34;project_hash&#34;:&#34;864a72d0&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/LeetCodeStreak-API/LeetCodeStreak-API/node_modules/prisma/build/index.js&#34;,&#34;c (dns block)

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

Copilot AI changed the title [WIP] Update dependency bump for @prisma/client upgrade Sync Prisma CLI to 7.3.0 and migrate to Prisma 7 adapter pattern Jan 26, 2026
Copilot AI requested a review from darwingtx January 26, 2026 03:40
@darwingtx darwingtx marked this pull request as ready for review January 27, 2026 04:05
@darwingtx darwingtx merged commit 1600f06 into dependabot/npm_and_yarn/prisma/client-7.3.0 Jan 28, 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.

2 participants