Disable destructive migration commands

Issue #132 new
Igor Santos created an issue

There are some horrible commands in the Artisan migrate package, namely refresh, that erases and recreates the entire base.

We should investigate if there's a way to intercept Artisan commands; if so:

  • in development, ask for confirmation before executing
  • in production, NEVER run and silently warn by email

If there's no way to directly intercept, alter the Artisan commands or even create a fork without those destructive options.

Comments (0)

  1. Log in to comment