pgroll
pgroll copied to clipboard
Make `pgroll migrate` idempotent
If there is a pending migration when running pgroll migrate, do not return an error. This can be useful when running migrate in a CI/CD env, and many jobs are trying to update the same database.
The current workaround is to check the status of the migrations using pgroll status and only run migrate if there is no ongoing migration.