Piwik\Updater\Migration\
Create a custom migration that can execute any callback.
The class defines the following methods:
exec()
— Executes the migration.__toString()
— Get a description of what the migration actually does.shouldIgnoreError()
— Decides whether an error should be ignored or not.__construct()
exec()
Executes the migration.
void
value.__toString()
Get a description of what the migration actually does. For example "Activate plugin $plugin" or "SELECT * FROM table".
string
value.shouldIgnoreError()
Decides whether an error should be ignored or not.
It accepts the following parameter(s):
$exception
(Exception
) —It returns a bool
value.
__construct()
It accepts the following parameter(s):
$callback
$toString