SHOULD I RUN prisma generate EVERYTIME WHEN I MODIFY PRISMA SCHEMA IF I GOING TO DO MIGRATION?
1 Reply
Yes, you should invoke
npx prisma generate
after you have made the changes to your schema.prisma
file.
You can also use the --watch
flag for changes to automatically re-generate Prisma Client.
https://www.prisma.io/docs/orm/reference/prisma-cli-reference#continue-watching-the-schemaprisma-file-for-changes-to-automatically-re-generate-prisma-clientPrisma CLI reference | Prisma Documentation
This page gives an overview of all available Prisma CLI commands, explains their options and shows numerous usage examples.