Updater
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
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.executeMigration()
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):
$file$migration(Migration) —
It does not return anything or a mixed result.
- It throws one of the following exceptions:
Piwik\UpdaterErrorException