Repair steps

    Note

    A repair step is an implementation of the OCP\Migration\IRepairStep interface. By convention these classes are placed in the lib/Migration directory. The following repairstep will log a message when executed.

    The following function will sleep for 10 seconds and show the progress:

    The following repair steps are available:

    • install This repair step will be executed when installing the app. This means it is executed every time the app is enabled (using the Web interface or the CLI).
    • pre-migration This repair step will be executed just before the database is migrated during an update of the app.
    • post-migration This repair step will be executed just after the database is migrated during an update of the app. This repair step will also be executed when running the command