Enable update_db.sh to handle upgrading databases with release version
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 21 Mar 2011 20:13:44 +0000 (20:13 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 21 Mar 2011 20:13:44 +0000 (20:13 +0000)
commit3e06374e7b3d3f0c58dac661bb29bcde575de761
tree3de0389e0ece53c1511770fc30929b443dd6d31a
parentf52208b555075452cb36e88e2667f8391a13025b
Enable update_db.sh to handle upgrading databases with release version

When '0475' is mixed with '1.6.0.4', the latter wins as far as a plain MAX()
operator goes. Ensuring that the version is all digits should help avoid the
release version numbers in the config.upgrade_log table.

Thanks to Thomas Berezansky for suggesting a SIMILAR TO operator variation
that led to this approach.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19839 dcc99617-32d9-48b4-a31d-7c20da2025e4
build/tools/update_db.sh