From a1924bb31d6106037c1e8dec2ea4b39f86235960 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 1 Jun 2023 11:35:15 -0300 Subject: [PATCH] Bug 22440: (QA follow-up) Fix wrong check in db_rev Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/db_revs/221200026.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/db_revs/221200026.pl b/installer/data/mysql/db_revs/221200026.pl index 70e0d2ecc9..5cd09ece8f 100755 --- a/installer/data/mysql/db_revs/221200026.pl +++ b/installer/data/mysql/db_revs/221200026.pl @@ -7,7 +7,7 @@ return { my ($args) = @_; my ($dbh, $out) = @$args{qw(dbh out)}; - if ( foreign_key_exists( 'illrequests', 'illrequests_bibfk' ) ) { + unless ( foreign_key_exists( 'illrequests', 'illrequests_bibfk' ) ) { $dbh->do(q{ ALTER TABLE illrequests ADD KEY `illrequests_bibfk` (`biblio_id`), -- 2.39.5