Prisma: Error: P1017 Server has closed the connection

Prisma: Error: P1017 Server has closed the connection

我有一个带有 nodejs 服务器的 prisma 2 项目,一切正常,当我将 prisma 从 2 升级到“3.0.2”版本时,prisma db push 命令不再起作用,它会抛出此错误:

Error: P1017
Server has closed the connection.

我确信 postgres 数据库可以正常工作,因为所有查询和变更请求都可以正常工作。

我 运行 prisma db pull 然后 prisma db push 完美运行

当我从数据库中提取文件时,我认为该错误是 schema.prisma 文件中的一个错误我认为这更正了文件中的错误