]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1896247: Fix breakage from 5.1 upgrade check (#172)
authorDave Miller <justdave@bugzilla.org>
Sat, 11 May 2024 18:03:05 +0000 (14:03 -0400)
committerGitHub <noreply@github.com>
Sat, 11 May 2024 18:03:05 +0000 (14:03 -0400)
checksetup.pl

index 0fdb2d538c28d975e52eb637c36b6314ca1e3e50..0dbd95328003ba3cce31e4e1ed430bb50888d0de 100755 (executable)
@@ -121,7 +121,8 @@ my $dbh = Bugzilla->dbh;
 
 # We want to catch if the user is trying to "upgrade" from 5.1 because
 # that's actually a downgrade and you can't do that.
-my $bz51install = $dbh->bz_index_info('bz_schema', 'bz_schema_version_idx');
+my $bz51install;
+eval { $bz51install = $dbh->bz_index_info('bz_schema', 'bz_schema_version_idx'); };
 if ($bz51install) {
   require Bugzilla::Error;
   import Bugzilla::Error;