Repository navigation
Check file is loaded before trying to rollback it - #19922
Conversation
|
I ran into an issue after upgrading Until now, if I tried to run We should, at the very least, report the skipped migrations (in red?) to the user at the end of the command. Even better would be to also add a flag for users to enable this skipping behavior (disabled by default). Is this the right place to report this? Or should I open a new Issue about it? |
|
I would definitely recommend opening a new issue and linking this pr. Comments on a closed pr may go unnoticed for a while. |
I have some migrations on separated folders, and i want to migrate / reset them separately...
Right now it's working great with migrate, but not for reset, when i do:
It works great, but when i do:
It tries to reset all ran migrations, instead of resetting only the loaded files on
special/path.My PR fixes it, and probably won't make any difference for most use cases.
Even with my PR, there is still another known issue, if you run reset and nothing was migrated, no output is printed... This is basically because here: https://github.com/laravel/framework/blob/5.4/src/Illuminate/Database/Migrations/Migrator.php#L272-L280
$migrationshas all ran migrations, and we do the check with loaded file later.I think totally come with another PR properly fixing it but it will require a more code changes.
Let me know your thoughts so i can work on the other PR.