laravel迁移
php artisan migrate
迁移回滚
php artisan migrate:rollback
artisan回滚一个迁移
php artisan migrate:rollback --step=1
laravel创建模型和迁移
# If you would like to generate a database migration when you
# generate the model, you may use the --migration or -m option:
php artisan make:model Flight --migration
php artisan make:model Flight -m
laravel迁移整数
$table->bigInteger('votes');
laravel迁移回滚
To rollback one step:
php artisan migrate:rollback
To rollback multiple steps:
php artisan migrate:rollback --step=[x]
To drop all tables and reload all migrations:
php artisan migrate:fresh