Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent infinite loops of migrations (see #6957)
Description ----------- Fixes #3803, #4254, ... Something bad happened to me recently. I had a mailcious migration that did run forever. Because the migration was triggered by CI/CD, I had no control in stopping it... 🙀 IMHO, there is no legitamte case (esp in prodution) where migrations need to run more than (lets say a random number) eight times. Therefore, this PR adds a maximum loop count. This PR fixes a range of potential errors, incl. concrete errors (see issue numbers above). (We might also consider to break the loop and return a command failure code). Commits ------- 6cc2c91 Add loop control for migrations c06528c Introduce local variable 5f3e30e Stop with error 8698970 Also write NDJSON 07fb02e Increase maximum iterations ad0dd71 Update MigrateCommand.php e453142 Update MigrateCommand.php a6fd497 Adjust the error message Co-authored-by: leofeyer <1192057+leofeyer@users.noreply.github.com>
- Loading branch information