make zmupdate re-run the most recent update.

This commit is contained in:
Isaac Connor 2014-07-29 09:47:22 -04:00
parent 7147d47a76
commit d5a7a1849a
1 changed files with 1 additions and 1 deletions

View File

@ -1014,7 +1014,7 @@ if ( $version )
$dbh->{'AutoCommit'} = 0;
foreach my $patch ( @files ) {
my ( $v ) = $patch =~ /^zm_update\-([\d\.]+)\.sql$/;
if ( $v gt $version ) {
if ( $v ge $version ) {
print( "Upgrading DB to $v from $version\n" );
patchDB( $dbh, $v );
if ( $dbh->errstr() ) {