Friday, June 10, 2016

Laravel 5.3: Rollback one migration

Hi
A new feature has been added to Laravel 5.3 that will allow us to back out a single migration:
php artisan migrate:rollback --step=1
This is great for when we migrate and it runs through a batch but we want to back out just the last one instead the whole batch.
project/folder$ php artisan migrate
Nothing to migrate.

project/folder$ php artisan migrate:rollback --step=1
Roller back : 2016_06_10_500_last_created_table
 Thanks

2 comments:

  1. Yeah Currently I am working on Laravel Development and this new feature will allow me to back out a single migration it is such an efficient and time saving feature thank you for sharing this information keep posting...

    ReplyDelete