Bug 30275: (QA follow-up) Fix TestBuilder.t
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 6 Jul 2022 15:03:30 +0000 (16:03 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 6 Jul 2022 15:18:46 +0000 (12:18 -0300)
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 <tomascohen@theke.io>
t/lib/TestBuilder.pm

index 86a793f..94ffa97 100644 (file)
@@ -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" };
 }