Feature Request: Command that completely clears out the database #52022
Replies: 1 comment 1 reply
-
php artisan db:wipe |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jovelluna12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the migrate command works by running each migration file alphabetically, This causes issues like this. While it was explained in the issue linked that the migrations is supposed to be this way due to the way migrations and databases fundamentally works, I encountered a case where I need to clear out the entire database of the values from the different models that a project im working on currrently have. and seeing that there is currently no command or feature that does this, the migrate reset or migrate refresh command is the closest thing that I can think of, besides actually removing these values from the database itself, which I ended up doing anyway.
Beta Was this translation helpful? Give feedback.
All reactions