Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExampleTracker plugin doesn't delete its columns when uninstall #9245

Closed
shenzhuxi opened this issue Nov 20, 2015 · 3 comments
Closed

ExampleTracker plugin doesn't delete its columns when uninstall #9245

shenzhuxi opened this issue Nov 20, 2015 · 3 comments
Assignees
Labels
answered For when a question was asked and we referred to forum or answered it.
Milestone

Comments

@shenzhuxi
Copy link

ExampleTracker plugin added three columns to 3 tables, but didn't clear clean them after uninstall.

@tsteur
Copy link
Member

tsteur commented Nov 22, 2015

How did you uninstall the plugin? In the UI I can only deactivate it, but not uninstall it.

@shenzhuxi
Copy link
Author

I can't find the Uninstall link under Inactive now... facepalm
I guess that we need clean up in

class ExampleTracker extends \Piwik\Plugin
{
public function uninstall()
}

@tsteur
Copy link
Member

tsteur commented Nov 23, 2015

Dimensions are automatically uninstalled with the plugin, a plugin doesn't has to implement it specifically. As this is a plugin that comes with Piwik itself it cannot be uninstalled unfortunately. It would be installed again with the next Piwik update. The only way would be to drop the columns in the database manually and to disable the plugin. Be aware if you ever enable the plugin it might cause tracking errors if the columns in the database are missing.

@tsteur tsteur closed this as completed Nov 23, 2015
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Nov 23, 2015
@tsteur tsteur added this to the 2.15.1 milestone Nov 23, 2015
@tsteur tsteur self-assigned this Nov 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants