Laravel 5 6 7 Specific Table Migration

php artisan migrate --path='./database/migrations/2019_12_31_115457_create_coworking_personal_memberships_table.php'

refresh already exiting

php artisan migrate:refresh --path=/database/migrations/fileName.php

And when you run migrate with php artitsan migration, It just migrate the new migration file.

But if you add filed "status" into the first mgration file (users_table) and run migration. It's nothing to migrate. You need to run php artisan migrate:refresh.


No comments

Note: only a member of this blog may post a comment.