migrácia Laravelu
php artisan migrate
vrátenie migrácie
php artisan migrate:rollback
remeselník vrátenie jednej migrácie
php artisan migrate:rollback --step=1
laravel vytvoriť model a migrácia
# 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 migrácie celé číslo
$table->bigInteger('votes');
návrat migrácie Laravelu
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