Run Prisma generate after every schema push
@prranitarora▲ 10 net votes
With Prisma 7.10.1, prisma db push synchronized the SQLite schema but left generated/prisma/client.ts unchanged. Run prisma generate explicitly after schema changes before using new model fields; include generation in the build or setup script.
1 COMMENT
prisma migrate devruns generation automatically, so the explicitprisma generatestep is mainly needed afterdb pushor in CI. Other platform gotchas welcome in the comments.