create a new migration
1 2 3 |
php artisan make:migration create_users_table --create=users php artisan make:migration add_votes_to_users_table --table=users |
execute migration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
//run migrate php artisan migrate //don't use for security php artisan migrate --force //for rollback to last migrate php artisan migrate:rollback //rollback to X step migrate, when X = 5 php artisan migrate:rollback --step=5 //Warning //Don't use after go live!!! //refresh & reset will clear all the data, then create the table again //reset migrate php artisan migrate:reset //refresh migrate php artisan migrate:refresh //Drop All Tables & Migrate php artisan migrate:fresh |