@@ -, +, @@ -all option +Note that the current code around line 52/53 does not +handle that correctly: +Argument "\x{74}\x{65}..." isn't numeric in numeric ge (>=) at +installer/data/mysql/update.pl line 52. --- C4/Update/Database.pm | 1 + misc/bin/updatedb.pl | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 misc/bin/updatedb.pl --- a/C4/Update/Database.pm +++ a/C4/Update/Database.pm @@ -515,6 +515,7 @@ sub TransformToNum { sub SetVersion { my $new_version = TransformToNum(shift); + return unless $new_version =~ /\d\.\d+/; my $current_version = TransformToNum( C4::Context->preference('Version') ); unless ( C4::Context->preference('Version') ) { my $finish = $dbh->prepare(qq{ --- a/misc/bin/updatedb.pl +++ a/misc/bin/updatedb.pl @@ -73,8 +73,11 @@ if ($all) { : 0; for my $v (@$versions_available) { + # We execute ALL versions where version number >= min_version + # OR version is not a number if ( not grep { $v eq $_->{version} } @$versions - and C4::Update::Database::TransformToNum($v) >= $min_version ) + and ( not $v =~ /\d\.\d{2}\.\d{2}\.\d{3}/ or + C4::Update::Database::TransformToNum($v) >= $min_version ) ) { my $report = C4::Update::Database::execute_version $v; push @reports, $report; --