-
This happened to me multiple times and it's a mess to fix everytime. We have multiple databases and the over 200 migrations in our app. I am using Amazon Q assistant in the terminal, which gives suggestions to finish your commands before you finish them. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You could mark the commands as prohibited, but that would prevent you from running them all together. use Illuminate\Database\Console\Migrations\RefreshCommand;
use Illuminate\Support\Facades\DB;
// Prevent destructive DB commands
Illuminate\Support\Facades\DB::prohibitDestructiveCommands(true);
// Or just the `migrate:refresh` command
RefreshCommand::prohibit(true); See #51376 |
Beta Was this translation helpful? Give feedback.
-
Finally someone complaining about a copilot. This is why I avoid using it. |
Beta Was this translation helpful? Give feedback.
You could mark the commands as prohibited, but that would prevent you from running them all together.
See #51376