Skip to content

Commit

Permalink
Bug 1896247: Fix breakage from 5.1 upgrade check (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
justdave committed May 11, 2024
1 parent a5e18d6 commit 919563f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checksetup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@

# 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;
Expand Down

0 comments on commit 919563f

Please sign in to comment.