generated from AthennaIO/Template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
featureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
🚀 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 --forceMetadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Type
Projects
Status
Backlog