ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
CD
Cloudflare Developers
โข
5mo ago
โข
1 reply
DragoDiKomo
[SOLVED] Primsa + D1 Migration
I guys
, I
'm creating a full stack app using only cloudflare services
. In this Next
.js app I
'm using Prisma as ORM and D1 as database but
.
.
. I
'm getting stuck at migrations due to this error
:
CMD
: npx prisma migrate diff
-
-from
-local
-d1 script
-
-to
-schema
-datamodel
.
/prisma
/schema
.prisma
>
>
$
{migrationPath
}
Error
:
Passing the
-
-from
-local
-d1 flag to the prisma migrate diff command is not supported when
defining an adapter in Prisma config file
(e
.g
.
,
prisma.config.ts
prisma.config.ts
)
.
I
've checked both Prisma and CF documentation about this integration but nothing
, they show the
-
-from
-local
-d1 flag
, but it
's not working at all
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
D1 Migration
CD
Cloudflare Developers / general-help
3y ago
D1: "internal error" when database migration via 'npx wrangler d1 migrations...'
CD
Cloudflare Developers / general-help
2mo ago
Efficiently handling the migration errors in d1 DB.
CD
Cloudflare Developers / general-help
2y ago
D1 transactions
CD
Cloudflare Developers / general-help
2mo ago