Skip the :refresh part. That's only for completely rebuilding the database from scratch (so deleting everything and migrating again).
Usually you make a change in a new migration (so make:migration) in the up() function and revert it in the down function. So if you add the column test in up() you make sure to delete the column test in down() again. When you have added all your changes you run
php artisan migrate
If you have more changes to make you add another migration (so you do the whole process again).
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community