Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/content/docs/migrations/database/planetscale.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ Update your Prisma schema to use the new database provider:
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
provider = "prisma-client"
output = "../generated"
}

datasource db {
provider = "mysql"
url = env("DATABASE_URL")
relationMode = "prisma"
}

Expand Down
7 changes: 4 additions & 3 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
},
"dependencies": {
"@neondatabase/serverless": "^1.0.2",
"@prisma/adapter-neon": "6.18.0",
"@prisma/client": "6.18.0",
"@prisma/adapter-neon": "7.0.0",
"@prisma/client": "7.0.0",
"@prisma/client-runtime-utils": "^7.0.0",
"@t3-oss/env-nextjs": "^0.13.8",
"server-only": "^0.0.1",
"undici": "^7.16.0",
Expand All @@ -24,7 +25,7 @@
"@types/node": "24.9.1",
"@types/ws": "^8.18.1",
"bufferutil": "^4.0.9",
"prisma": "6.18.0",
"prisma": "7.0.0",
"typescript": "^5.9.3"
}
}
13 changes: 13 additions & 0 deletions packages/database/prisma.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from "prisma/config";
import { keys } from "./keys";
import "dotenv/config";

export default defineConfig({
schema: "prisma/schema.prisma",
migrations: {
path: "prisma/migrations",
},
datasource: {
url: keys().DATABASE_URL,
},
});
6 changes: 2 additions & 4 deletions packages/database/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
output = "../generated/client"
provider = "prisma-client"
output = "../generated"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
relationMode = "prisma"
}

Expand Down