Piwik\Updater\Migration\

Custom

Create a custom migration that can execute any callback.

Methods

The class defines the following methods:

exec()

Executes the migration.

Signature

  • It returns a void value.

__toString()

Get a description of what the migration actually does. For example "Activate plugin $plugin" or "SELECT * FROM table".

Signature

  • It returns a string value.

shouldIgnoreError()

Decides whether an error should be ignored or not.

Signature

  • It accepts the following parameter(s):

  • It returns a bool value.

__construct()

Signature

  • It accepts the following parameter(s):

    • $callback

    • $toString