db-postgres: payload migrate
command should exit with non-zero exit code when the migration fails
#4322
ikenox
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently when executing
npm run payload migrate
command and its migration fails partially, only an error log is generated and the process exits with exit code 0.ref: https://github.com/payloadcms/payload/blob/e180131/packages/db-postgres/src/migrate.ts#L100-L103
So currently we don't have a way to programmatically know whether the migration process is success.
It would be useful if migration fails with a non-zero exit code, especially for CI workflow.
Beta Was this translation helpful? Give feedback.
All reactions