Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support in DB::prohibitDestructiveCommands to preventing destructive Rollback… #54238

Merged
merged 2 commits into from
Jan 18, 2025

Conversation

hexathos
Copy link
Contributor

This PR prevents the destructive RollbackCommand if DB::prohibitDestructiveCommands is set to true.

@hexathos hexathos marked this pull request as draft January 17, 2025 23:02
@hexathos hexathos marked this pull request as ready for review January 17, 2025 23:06
@taylorotwell taylorotwell merged commit fffdd53 into laravel:11.x Jan 18, 2025
38 checks passed
@alexkart
Copy link

alexkart commented Jan 29, 2025

@hexathos What is the reason to prohibit rollback command? While other ones understandably never should be run in production the rollback command sometimes needs to be run to rollback the latest changes if they introduce a bug, for example, and it is not always destructive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants