laravel migration
php artisan migrate
migration rollback
php artisan migrate:rollback
แห่งงานฝีมือ rollback หนึ่ง migration
php artisan migrate:rollback --step=1
laravel สร้างนางแบบและ migration
# 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 migration จำนวนเต็ม
$table->bigInteger('votes');
laravel migration rollback
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