Migration
Piwik\Updater\
Migration
Base class for migrations.
Methods
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.
Signature
- It returns a
voidvalue.
__toString()
Get a description of what the migration actually does. For example "Activate plugin $plugin" or "SELECT * FROM table".
Signature
- It returns a
stringvalue.
shouldIgnoreError()
Decides whether an error should be ignored or not.
Signature
It accepts the following parameter(s):
$exception(Exception) —
It returns a
boolvalue.