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

Process to update piwik #5450

Closed
mattab opened this issue Jan 3, 2008 · 2 comments
Closed

Process to update piwik #5450

mattab opened this issue Jan 3, 2008 · 2 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Jan 3, 2008

This feature could be implemented as in phpMyVisites (it works well)
It makes it easy and secure to update from one version to another.

The software checks that the version in the database is the same as the version in the version.php.

If the version.php has a newer version, we update the database with all the changes that were done between both versions.

We can also execute some random php code as every version provides a file containing the changes to apply. This way of doing things is easy and very modular (you can do what you want during the update).

Display version number
Task also include display the version number somewhere in the admin UI, in the META tags on all piwik generated pages, an in the error/exception messages.

To do by default in first piwik release that has update feature
when updating from previous to first version with update system we need to:
- create indices now created at install: see comment below
- purge old archive tables containing temporary archive data
- remove cookie detection as it is completely wrong
- remove color_depth field
- alter table piwik_site and remove the update CURRENT_TIME

@mattab
Copy link
Member Author

mattab commented Oct 10, 2008

Some web hosting services forget to give permission for ADD INDEX for the mysql users of their customers. Piwik creates the INDEX in a separate query at the moment, but this is not necessary. We could create the index in the CREATE TABLE statements.

In case we have to create the index afterwards (during the update process), we should catch this error and display a friendly error message (Please ask your web host to give you CREATE INDEX permission// or here is how to do it yourself)

@mattab
Copy link
Member Author

mattab commented Nov 4, 2008

still to do: show version number in UI. closing

@mattab mattab added this to the Piwik 0.6.1 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

1 participant