Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the --path option to migrate:rollback #28

Closed
brayann opened this issue Jan 13, 2013 · 2 comments
Closed

Include the --path option to migrate:rollback #28

brayann opened this issue Jan 13, 2013 · 2 comments

Comments

@brayann
Copy link

brayann commented Jan 13, 2013

I was trying to reset my migrations, but since I'm using the PSR-0 implementation of Dayle:
https://github.com/daylerees/autoload-demo

I need to use --path function, wich is available only on the migrate command.

Don't know if it's a bug or a new feature, please label it guys :-)

Edit: This option isn't available in both of rollback and reset commands.

@taylorotwell
Copy link
Member

This option would have no effect on migrate or rollback. Both of these commands simply rollback the last operation or reset all the way to the beginning, regardless of path.

@mvolo
Copy link

mvolo commented Sep 1, 2014

using options (such as --path) on migrate breaks rollback.

The error message is:
[ErrorException]
include(/var/www/.../app/database/migrations/2014_08_19_233238_add_field_to_table.php): failed to open stream: No such file or directory.

see #1391 for fix.

The fix for this is to add any migration paths in composer.json "autoload",
then run:
composer dump-autoload,

then the migration:rollback will work as expected.

dbpolito pushed a commit to dbpolito/framework that referenced this issue Oct 1, 2019
gonzalom pushed a commit to Hydrane/tmp-laravel-framework that referenced this issue Oct 12, 2023
Fix Syntax error in config/filesystems.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants