]> git.evergreen-ils.org Git - 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:13:13 +0000 (20:13 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 21 Mar 2011 20:13:13 +0000 (20:13 +0000)
commit17d206db901ff1419b84d5a59b33488fab0ff262
treef64fdbd5c427118a53c081e0e15596b77c71208a
parent234a9874b9a6686526253492f0a3f6e481fd7061
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_1@19838 dcc99617-32d9-48b4-a31d-7c20da2025e4
build/tools/update_db.sh