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

feat: Added support for migrating single file #427

Merged
merged 3 commits into from Jan 11, 2021
Merged

feat: Added support for migrating single file #427

merged 3 commits into from Jan 11, 2021

Conversation

@yoramdelangen
Copy link
Contributor

@yoramdelangen yoramdelangen commented Dec 23, 2020

Laravel framework supports this and I have some situations I need to migrate only a single file instead of all migrations within the migrations folder.

This can particularly when you have migrations within your build (phar) and migrations outside of the build.

In my case I need it to have a bit more control over migrations that are generated by a UI for example. I want to migrate a single migration at the time. If for some reason 1 migration fails I does not stall the entire process.

Laravel framework supports this and I have some situations I need to migrate only a single file instead of all migrations within the migrations folder. 
This can particularly when you have migrations within your build (phar) and migrations outside of the build.
@yoramdelangen yoramdelangen changed the title Added support for migrating single file feat: Added support for migrating single file Dec 23, 2020
Copy link
Member

@owenvoke owenvoke left a comment

Apologies for the delay, I thought I'd already submitted my review. 🤦🏻 This looks pretty nice, I was trying to work out if there was any way to make this a bit cleaner, but I think this is fine. 👍🏻

Just one minor comment below.

Loading

src/Components/Database/Migrator.php Outdated Show resolved Hide resolved
Loading
@yoramdelangen
Copy link
Contributor Author

@yoramdelangen yoramdelangen commented Jan 11, 2021

I have cleaned it up :-)

Loading

@owenvoke owenvoke merged commit 5f4d31a into laravel-zero:master Jan 11, 2021
9 checks passed
Loading
@owenvoke
Copy link
Member

@owenvoke owenvoke commented Jan 11, 2021

Thanks for this @yoramdelangen!

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants