In this post I will show you how to leverage Github’s gh-ost hooks for greatly improving visibility of ongoing schema changes for your organization.
One of the potential uses of gh-ost hooks is to send status updates. I will present you with some examples of how to do that via email and Slack.
What are gh-ost hooks?
gh-ost has built-in support for hooks, i.e. external scripts with predefined names, that will be called by gh-ost at certain points of a schema change operation.
The complete list is available here, but the most useful gh-ost hooks for me are:
- called at the start of a schema change operation
- ran …