It's quite easy to roll back just a specific migration.
Since the command php artisan migrate:rollback
, undo the last database migration,
and the order of the migrations execution is stored in the batch
field in the migrations
table.
You can edit the batch value of the migration that you want to rollback and set it as the higher. Then you can rollback that migration with a simple:
php artisan migrate:rollback
After editing the same migration you can execute it again with a simple
php artisan migrate
NOTICE: if two or more migrations have the same higher value, they will be all rolled back at the same time.