Skip to content

Commit f3a09fa

Browse files
authored
chore: upgrade prisma (#2103)
1 parent 7e80222 commit f3a09fa

File tree

6 files changed

+69
-67
lines changed

6 files changed

+69
-67
lines changed

.changeset/seven-clocks-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-t3-app": minor
3+
---
4+
5+
Upgrade to Prisma 6.6.0

cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
"@auth/prisma-adapter": "^1.6.0",
6767
"@libsql/client": "^0.14.0",
6868
"@planetscale/database": "^1.19.0",
69-
"@prisma/adapter-planetscale": "^6.5.0",
70-
"@prisma/client": "^6.5.0",
69+
"@prisma/adapter-planetscale": "^6.6.0",
70+
"@prisma/client": "^6.6.0",
7171
"@t3-oss/env-nextjs": "^0.12.0",
7272
"@tailwindcss/postcss": "^4.0.15",
7373
"@tanstack/react-query": "^5.69.0",
@@ -86,7 +86,7 @@
8686
"postgres": "^3.4.4",
8787
"prettier": "^3.5.3",
8888
"prettier-plugin-tailwindcss": "^0.6.11",
89-
"prisma": "^6.5.0",
89+
"prisma": "^6.6.0",
9090
"react": "^19.0.0",
9191
"react-dom": "^19.0.0",
9292
"superjson": "^2.2.1",

cli/src/installers/dependencyVersionMap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export const dependencyVersionMap = {
99
"@auth/drizzle-adapter": "^1.7.2",
1010

1111
// Prisma
12-
prisma: "^6.5.0",
13-
"@prisma/client": "^6.5.0",
14-
"@prisma/adapter-planetscale": "^6.5.0",
12+
prisma: "^6.6.0",
13+
"@prisma/client": "^6.6.0",
14+
"@prisma/adapter-planetscale": "^6.6.0",
1515

1616
// Drizzle
1717
"drizzle-kit": "^0.30.5",

cli/template/extras/src/server/db/db-prisma-planetscale.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
import { Client } from "@planetscale/database";
21
import { PrismaPlanetScale } from "@prisma/adapter-planetscale";
32
import { PrismaClient } from "@prisma/client";
43

54
import { env } from "~/env";
65

7-
const psClient = new Client({ url: env.DATABASE_URL });
8-
96
const createPrismaClient = () =>
107
new PrismaClient({
118
log:
129
env.NODE_ENV === "development" ? ["query", "error", "warn"] : ["error"],
13-
adapter: new PrismaPlanetScale(psClient),
10+
adapter: new PrismaPlanetScale({ url: env.DATABASE_URL }),
1411
});
1512

1613
const globalForPrisma = globalThis as unknown as {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"engines": {
2525
"node": ">=20.0.0"
2626
},
27-
"packageManager": "pnpm@10.6.3",
27+
"packageManager": "pnpm@10.8.0",
2828
"scripts": {
2929
"typecheck": "turbo typecheck",
3030
"build:cli": "turbo --filter=create-t3-app build",

pnpm-lock.yaml

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)