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

Custom plugin migration/update not recognized #11648

Closed
alfonso-romero opened this issue Apr 25, 2017 · 1 comment
Closed

Custom plugin migration/update not recognized #11648

alfonso-romero opened this issue Apr 25, 2017 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@alfonso-romero
Copy link

Hi

I'm trying to do an update on an existing custom plugin. Following the steps from https://developer.piwik.org/guides/extending-database

I ran the command ./console generate:update and got the Updates directory with the 1.0.php file inside of it generated. I want to create a custom table on database, and I put the code accordingly inside the getMigrations() method.

But when I want to execute the update, command ./console core:update always displays everything is up to date, but it never shows the pending update nor any sql queries to be executed, and table is never created on database.

I'm using the latest Piwik version 3.0.3 up until today, but can't get Piwik to recognize this update

Am i missing some additional setting somewhere else, or missing some step to be able to get this update done?

Thanks in advance, any help will be appreciated

@tsteur
Copy link
Member

tsteur commented Apr 25, 2017

I presume the database has maybe already recorded that this version is installed. I would recommend to try changing the update class and filename from eg 1_0_0 to 1_0_1 and then also the plugin version from eg 1.0.0 to 1.0.1 in plugin.json.

Please ask such questions in the form in the future as we handle only bugs and feature requests here. https://forum.piwik.org/c/plugins-platform

@mattab mattab closed this as completed May 8, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label May 8, 2017
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

3 participants