[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
).


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.
Was this page helpful?