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.

executeMigration()

Signature

  • It accepts the following parameter(s):

    • $file (Piwik\$file) —

    • $migration (Migration) —

  • It does not return anything.

  • It throws one of the following exceptions:
    • UpdaterErrorException