-
Notifications
You must be signed in to change notification settings - Fork 8
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
V2 #3
V2 #3
Conversation
Removed Exec method Added FileTemplate method
A lot of things to review :) |
@gravis tests on master branch are failing
|
* Added driver.Lockable interface, which can be optionally implmented in order to make it safe to use concurrently.
@gravis I added optional pre/post hooks for migraitons. |
Happy New Year ! Waiting for your feedback @gravis :) |
ping |
Hi there. I'm back to work today, sorry for the delay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Handle
name is certainly not blocking.
Let's continue with changes in drivers, and we'll be good to merge
} | ||
|
||
// Handle encapsulates migrations functionality | ||
type Handle struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we name it Handler
, instead of Handle
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like Handler
b/c it's common name/pattern which usually refers to interface or function.
We can go conservative way and name it Migrate
. I was simply looking for something that plays well with migrate.
prefix and isn't counter-intuitive (at least), and Handle
is the best what I came up with.
@gravis now I think I'm happy with results. From my perspective it's ready for merge, and drivers can be polished with follow-up PRs. |
Thanks for your tremendous work! |
Quite massive backward-incompatible refactoring :)
All drivers and journey cli are also updated.
This PR addresses all concerns discussed in #2 (in one way or another)
Changes
Initialize
method from Driver interfaceFlenameExtension
from Driver interface