diff --git a/scripts/zmupdate.pl.in b/scripts/zmupdate.pl.in index a35bf5b771..3c9aa04f91 100644 --- a/scripts/zmupdate.pl.in +++ b/scripts/zmupdate.pl.in @@ -941,7 +941,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'.$v) > version->parse('v'.$version) ) { + if ( version->parse('v'.$v) >= version->parse('v'.$version) ) { print("Upgrading DB to $v from $version\n"); if ( patchDB($dbh, $v) ) { my $res = $sth->execute($version) or die( "Can't execute: ".$sth->errstr() );