payload
payload copied to clipboard
db-postgres: abort migration when one migration fails
Description
Related: https://github.com/payloadcms/payload/discussions/4322
The base migration method aborts when one migration fails. https://github.com/payloadcms/payload/blob/main/packages/payload/src/database/migrations/migrate.ts#L50
So it's desirable that the db-postgres adapter's migration method has the same behavior.
- [x] I have read and understand the CONTRIBUTING.md document in this repository.
Type of change
- [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist:
- [x] Existing test suite passes locally with my changes