A
A
Alexander Sharomet2015-10-25 22:13:38
Laravel
Alexander Sharomet, 2015-10-25 22:13:38

How to rollback migration along the way in laravel 5?

Hi all. such a question I created a migration to laravel in a separate folder

php artisan make:migration --create=users --path=database/migrations/users create_users_table
php artisan migrate --path=database/migrations/users

I did not find this in the documentation for the
question of how to roll back along the same path
php artisan migrate:reset --path=database/migrations/users

this option doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2015-10-25
@sharomet

The problem is solved simply - we do composer dumpit, after which we run the migration with the key --path, and rollback - without the key. Everything will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question