From b4eaac91c91b5ceb19fb31d65043e63b8447b644 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 6 Jul 2022 16:03:30 +0100 Subject: [PATCH] Bug 30275: (QA follow-up) Fix TestBuilder.t This patch adds 'CheckoutRenewal.checkout_id' to the list of non-foreign key relations found in _should_be_fk. Signed-off-by: Tomas Cohen Arazi --- t/lib/TestBuilder.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm index 86a793f1b9..94ffa97510 100644 --- a/t/lib/TestBuilder.pm +++ b/t/lib/TestBuilder.pm @@ -433,7 +433,8 @@ sub _should_be_fk { # A column is not marked as FK, but a belongs_to relation is defined my ( $source, $column ) = @_; my $inconsistencies = { - 'Item.biblionumber' => 1, #FIXME: Please remove me when I become FK + 'Item.biblionumber' => 1, #FIXME: Please remove me when I become FK + 'CheckoutRenewal.checkout_id' => 1, #FIXME: Please remove when issues and old_issues are merged }; return $inconsistencies->{ "$source.$column" }; } -- 2.39.5