documentation/Reference/Callback Events.md
Flyway offers you the possibility to hook into its lifecycle by using Callbacks.
For more information see Callbacks.
Note: Callbacks are partially supported by Native Connectors.
Note: It is strongly discouraged to include any write-related callbacks for the Info command. The Info command may be internally triggered by Flyway.
<table class="table table-hover"> <thead> <tr> <th><strong>Validate</strong></th> <th><strong>Execution</strong></th> </tr> </thead> <tbody> <tr id="beforeValidate"> <td>beforeValidate</td> <td>Before Validate runs</td> </tr> <tr id="afterValidate"> <td>afterValidate</td> <td>After Validate command succeeds</td> </tr> <tr id="afterValidateError"> <td>afterValidateError</td> <td>After Validate command fails</td> </tr> </tbody> </table> <table class="table table-hover"> <thead> <tr> <th><strong>Baseline</strong></th> <th><strong>Execution</strong></th> </tr> </thead> <tbody> <tr id="beforeBaseline"> <td>beforeBaseline</td> <td>Before Baseline runs</td> </tr> <tr id="afterBaseline"> <td>afterBaseline</td> <td>After Baseline command succeeds</td> </tr> <tr id="afterBaselineError"> <td>afterBaselineError</td> <td>After Baseline command fails</td> </tr> </tbody> </table> <table class="table table-hover"> <thead> <tr> <th><strong>Repair</strong></th> <th><strong>Execution</strong></th> </tr> </thead> <tbody> <tr id="beforeRepair"> <td>beforeRepair</td> <td>Before Repair runs</td> </tr> <tr id="afterRepair"> <td>afterRepair</td> <td>After Repair command succeeds</td> </tr> <tr id="afterRepairError"> <td>afterRepairError</td> <td>After Repair command fails</td> </tr> </tbody> </table> <table class="table table-hover"> <thead> <tr> <th><strong>Name</strong></th> <th><strong>Execution</strong></th> </tr> </thead> <tbody> <tr id="createSchema"> <td>createSchema [deprecated, use beforeCreateSchema]</td> <td>Before automatically creating non-existent schemas</td> </tr> <tr id="beforeCreateSchema"> <td>beforeCreateSchema</td> <td>Before automatically creating non-existent schemas</td> </tr> <tr id="beforeConnect"> <td>beforeConnect {% include redgate.html %}</td> <td>Before Flyway connects to the database</td> </tr> <tr id="afterConnect"> <td>afterConnect</td> <td>Immediately after Flyway connects to the database</td> </tr> </tbody> </table>