Ticket #30 (closed New feature: fixed)

Opened 11 months ago

Last modified 2 weeks ago

Process to update piwik

Reported by: matt Assigned to:
Priority: major Milestone: DigitalVibes
Component: Core Version:
Keywords: Cc:

Description (Last modified by matt)

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

Change History

01/04/08 01:56:43 changed by matt

  • milestone set to Stable release.

10/10/08 16:18:22 changed by matt

  • milestone changed from Stable release to DigitalVibes.

10/10/08 17:01:54 changed by matt

  • description changed.

10/10/08 17:19:32 changed by matt

  • description changed.

10/10/08 18:54:45 changed by matt

  • description changed.

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)

11/04/08 12:39:20 changed by matt

  • description changed.

11/04/08 13:56:34 changed by matt

  • status changed from new to closed.
  • resolution set to fixed.

still to do: show version number in UI. closing