Piwik\

Updater

Load and execute all relevant, incremental update scripts for Matomo (formerly Piwik) core and plugins, and bump the component version numbers for completed updates.

Methods

The class defines the following methods:

executeMigrations()

Execute multiple migration queries from a single Update file.

Signature

  • It accepts the following parameter(s):
    • $file (string) — The path to the Updates file.
    • $migrations (Migration[]) — An array of migrations
  • It does not return anything or a mixed result.

executeMigration()

Signature

  • It accepts the following parameter(s):

  • It does not return anything or a mixed result.

  • It throws one of the following exceptions:
    • Piwik\UpdaterErrorException