]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Enable update_db.sh to handle upgrading databases with release version
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 21 Mar 2011 20:12:17 +0000 (20:12 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 21 Mar 2011 20:12:17 +0000 (20:12 +0000)
commita30535bd85da5fc627377009a69bf910504ef4e7
treea3edf04ed8ac5bc86a5237b39a9bdc9868ab3ecf
parent8548278e2f9d52175e5fe772efa58fec227dc271
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/trunk@19837 dcc99617-32d9-48b4-a31d-7c20da2025e4
build/tools/update_db.sh