Piwik\Updater\
Base class for migrations.
The abstract 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.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.