Make new update migrations available for plugin install and uninstall #10069
Labels
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
In Piwik 3.0.0-b1 we introduced a better way to define plugin updates by using migrations to define MySQL schema updates. It would be nice to have these available as well in
Plugin::install
andPlugin::uninstall
. Otherwise we still need to write plain SQL there see https://github.com/piwik/piwik/pull/10003/files where we can see plain SQL and usage of the migration API.I first thought about removing
install
completely and only using updates in the future but it is actually good to keepinstall
:uninstall
needed in the plugin anyway so it's kind of logical to have aninstall
log_visit
and changes it's type multiple times in a couple of its updates. Instead we can directly install the correct column with the correct type.The text was updated successfully, but these errors were encountered: