-
Notifications
You must be signed in to change notification settings - Fork 23
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
Hooks #1449
Hooks #1449
Conversation
d3deae9
to
bea254b
Compare
9cf7e12
to
767f6ef
Compare
(and also database.wipe.before & database.wipe.after)
I need an install of windows to implement hooks in WSL. |
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.
Looks good!
My original intent with the RFC was that any schema change to a consistent schema state should trigger migration hooks. That means all invocation of migrations should do it, but also any switches between branches (since each branch is in a consistent schema state, potentially different from previous branch). We can argue that the |
There's a hook behavior that was not specified in the RFC one way or another. When a hook fails, the operation aborts at that point. E.g. if the |
Oh. That's not good - it should be called before the branch is created. Execution of a command should be all or nothing. Wait, are you saying that |
Do we want
before
hooks too? I've implemented some because they were easy.