This documentation is for an outdated Matomo version.
Click here if you want to read this article for the latest version.
Click here if you want to read this article for the latest version.
Piwik\Updater\Migration\
Db
Base class for a single database migration.
Methods
The abstract class defines the following methods:
exec()ash; Executes the migration. Inherited fromMigration__toString()ash; Get a description of what the migration actually does. Inherited fromMigrationshouldIgnoreError()ash; Decides whether an error should be ignored or not. Inherited fromMigration
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.