Merge pull request #1176 from SteveGilvarry/zmupdate_fix

Partial fix for #1167
This commit is contained in:
Isaac Connor 2015-12-07 09:53:41 -05:00
commit cb14a12325
1 changed files with 1 additions and 1 deletions

View File

@ -1044,7 +1044,7 @@ if ( $version )
foreach my $patch ( @files ) {
my ( $v ) = $patch =~ /^zm_update\-([\d\.]+)\.sql$/;
#PP make sure we use version compare
if ( version->parse($v) ge version->parse($version) ) {
if ( version->parse('v' . $v) > version->parse('v' . $version) ) {
print( "Upgrading DB to $v from $version\n" );
patchDB( $dbh, $v );
if ( $dbh->errstr() ) {