Netlify deploy does not pick up changes to schema file #6634
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: deployment/netlify
topic: deployment-platform
topic: serverless
Milestone
db push
for example)netlify/functions/invocation-count.js
that reads the empty table for examplenetlify dev
DATABASE_URL
env var and deploydb push
)schema.prisma
file to use apostgresql
providerI got an error telling me that the env var should have a different protocol, still
mysql://
.Somehow it seems that the Client did not generated again when I only changed the schema file in the repository. Deplying again to Netlify with clearing the cache avoided the problem.
Reason probably is that
prisma generate
by default is only run vianpm install
, and as cache is used on a normal deploy that is not necessary. But for Prisma it kinda is, for the schema changes to becomes active in a new generated Client.The text was updated successfully, but these errors were encountered: