framework icon indicating copy to clipboard operation
framework copied to clipboard

Running migrations doesn't require composer dump-autoload but reset does

Open alexdover opened this issue 12 years ago • 1 comments

I am working on a project where multiple people are contributing migrations to the codebase. I had forgotten to run composer dump-autoload so when I came to refresh my migrations it was failing because the class didn't exist.

There is a comment in the docs about this, which I didn't actually see initially, but I find it a bit inconsistent that the run command calls the requireFiles method on the MIgrator, which goes through and requires all the migration files, but the refresh and rollback commands don't.

Should the requireFiles not be added to those commands as well?

alexdover avatar Jan 06 '14 17:01 alexdover

I don't know where the files are at that point. I only know the names of the migration classes. Just be sure to dump-autoload.

taylorotwell avatar Jan 07 '14 01:01 taylorotwell