🚀 Feature Proposal
Commands that affect saved data, should be ignored in the production environment if it has no force flag.
The run/revert migration commands and database wipe command, should not be easily run in production, these commands could be found at the above paths of the project:
Motivation
To prevent production data lost.
Example
If NODE_ENV=production, the above command should throw an exception with an explanation to the developer that he needs to use --force flag to run this command in production:
node artisan migration:run
If NODE_ENV=production, the above command should work as expected:
node artisan migration:run --force
🚀 Feature Proposal
Commands that affect saved data, should be ignored in the production environment if it has no
forceflag.The run/revert migration commands and database wipe command, should not be easily run in production, these commands could be found at the above paths of the project:
Motivation
To prevent production data lost.
Example
If
NODE_ENV=production, the above command should throw an exception with an explanation to the developer that he needs to use--forceflag to run this command in production:If
NODE_ENV=production, the above command should work as expected: