ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
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 banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

D1 Migration
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
D1: "internal error" when database migration via 'npx wrangler d1 migrations...'
Cloudflare DevelopersCDCloudflare Developers / general-help
2mo ago
Efficiently handling the migration errors in d1 DB.
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
D1 transactions
Cloudflare DevelopersCDCloudflare Developers / general-help
2mo ago