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
Migration not found on migrate:refresh with --path option #23789
Comments
i'm getting this same error, when trying to drop a column |
If you run a migration from a path and then; run e.g.:
Storing the path of the migration files can change this behavior. But is this what Laravel should do? |
@dorin-niscu you need to use php artisan migrate:refresh --path=vendor/laravel/passport/database/migrations @erdemkeren you didn't specify the path with the rollback command. |
@driesvints Indeed. I was talking about persisting the path of the migration files to migrations table inside another column (maybe). |
@erdemkeren that's not something we're going to change. If the location of the migrations would change you'd have to update the values in the database as well. |
You must delete the content of the migration table in the database |
I am getting "Migration not found" when running migrate:refresh with --path option.
Seems that the script tries to rollback all migrations, not only specified ones.
php artisan migrate:refresh --path=packages/package/src/database/migrations
The final result is actually fine. It refreshes the specified folder migrations.
The text was updated successfully, but these errors were encountered: