6700: Better handling of version numbers in updatedatabase
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 30 Jun 2011 07:34:23 +0000 (09:34 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 27 Dec 2011 16:56:01 +0000 (17:56 +0100)
commitc8982e1ab41ef54ba66afd3ed313e81cde307004
tree69ada66a41b6089b1eb5987901ebc65e0e3d5bae
parent22dca58cbad64841fb12a6e48afa50500c1a5c60
6700: Better handling of version numbers in updatedatabase

Contains a few lines of code for updatedatabase routines SetVersion and TransformToNum in order to facilitate testing new db revisions which are still marked XXX.
Currently, the XXX as added in a proposed patch generates an error in the version compare. Additionally, running SetVersion while testing the upgrade is annoying and not needed. In testing stage you would like to keep your version number as is. The version number should of course be incremented when the patch is pushed. A simple test accomplishes that.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
installer/data/mysql/updatedatabase.pl