If the version number for some reason is messed up, update.php will error out on the first query that failed. In other words, if something goes wrong, you cannot rerun update.php.
A better behavior would be for update.php to continue running anyway - that is, in line 483, the "OR die..." clause should be removed.
Example:
In my installation, the version number was reported as 08.10.09, but the database updates had never been run. Finding out which version the database is is all but impossible except through trial and error. It would be much better if you could simply set $version = "" at the top, and re-run all updates, even those that are unnecessary (and therefore will error out).
Of course, there are more elaborate options, but that would make this a feature request.
|