Upgrading existing instance
Getting new code
From downloadable package
If you used downloadable packages, then you can just override all the code (except for
config.php) and run
make which will upgrade the DB schema.
From code repository
This will get the newest code from git repository and upgrade DB schema.
Upgrading database schema
ShowSlow uses DBUpgrade for schema upgrades which in turn uses MySQLi for DB connectivity which is not compiled into PHP by default so you'll have to enable/compile in MySQLi before being able to upgrade. If you're using MySQL 4.1.3 or later (and you should be by now), it's very much encouraged to use MySQLi.
Upgrading without make
If you can't use make for some reason, you can just get new code package of use git to pull latest version:
and then from command line:
php dbupgrade.php php users/dbupgrade.php
We moved from Google code's hosting which worked very well for us, but didn't provide enough infrastructure for collaboration. We now use Github's git repository and Subversion support is not going to be a high priority.
Still, Github has Subversion endpoint and you can use it:
svn checkout http://svn.github.com/sergeychernyshev/showslow.git showslow
But it does not support externals and you'll have to get all subprojects separately. We highly encourage you to [[Installation and configuration#From git|use git to get and update the code.
Upgrading to version 0.6
0.6 started to use SVN Assets project for static asset management which has a few requirements - please see Caching for static assets using SVN Assets section in the documentation.
config.sample.php got a new required field there -
Simplest setup can be to add following line under
$showslow_base definition in your
$baseAssetURL = $showslow_base;
Upgrading to version 0.4 (or trunk r114)
If you're upgrading from the version that doesn't use DBUpgrade yet (0.3 or trunk versions before r114), then you'll need to manually upgrade database schema first - just get this version of tables.sql and make sure your schema matches: http://code.google.com/p/showslow/source/browse/trunk/tables.sql?spec=svn114&r=114
Then you'll be able to simply run dbupgrade.php to get the schema up to date.