prisma migrate reset
always exits with 0
, needs to exit with 1
on errors
#9786
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/typescript
Issue for tech TypeScript.
topic: cli
topic: prisma db seed
CLI: prisma db seed
topic: prisma migrate reset
CLI: prisma migrate reset
Milestone
Bug description
If your seed script throws an error, prisma's shell exit code is still 0, which is especially problematic for CI that might be deploying a newly seeded DB.
How to reproduce
write a seed script that just throws an error
Then in the prompt:
Note that
prisma db seed
exits properlyExpected behavior
It should exit with
1
for errors, just likeprisma db seed
.Prisma information
n/a
Environment & setup
sqlite
macOS and github actions linux
Prisma Version
Workaround
Don't use the cli, make your own script:
The text was updated successfully, but these errors were encountered: