Merge pull request #1176 from SteveGilvarry/zmupdate_fix
Partial fix for #1167
This commit is contained in:
commit
cb14a12325
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in New Issue