라라벨 마이그레이션
php artisan migrate
마이그레이션 롤백
php artisan migrate:rollback
장인 롤백 한 마이그레이션
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
라라벨 마이그레이션 정수
$table->bigInteger('votes');
라라벨 마이그레이션 롤백
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