Skip to content

New console command to update core and/or plugins #4711

@mattab

Description

@mattab

the current recommend command to upgrade Piwik is:

 php index.php -- "module=CoreUpdater" ```

instead let's add a new console command such as:

./console coreadmin:update ```

this would:

  • run the Core upgrade and Plugins upgrades,
  • for each execute the changes in the */Updates/ directories, and execute the SQL code and/or scripts.
  • --dry-run -> when this is specified, print the SQL queries that would otherwise be executed. Useful for debugging or preparations before big upgrades.

So after updating Piwik files for core and/or plugins one can run this command to upgrade the schema and run any upgrade script.

Metadata

Metadata

Assignees

Labels

EnhancementFor new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions