Piwik\Updater\

Migration

Base class for migrations.

Methods

The abstract 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.