From 3d99867f60ff72866f31c840b8c70d36a5422a59 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 5 Mar 2026 14:59:03 +0000 Subject: [PATCH] Bug 23260: DBIC Signed-off-by: Lucas Gass --- Koha/Schema/Result/ItemsLastBorrower.pm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Koha/Schema/Result/ItemsLastBorrower.pm b/Koha/Schema/Result/ItemsLastBorrower.pm index b73d157665..e3de0406e1 100644 --- a/Koha/Schema/Result/ItemsLastBorrower.pm +++ b/Koha/Schema/Result/ItemsLastBorrower.pm @@ -39,7 +39,7 @@ __PACKAGE__->table("items_last_borrower"); data_type: 'integer' is_foreign_key: 1 - is_nullable: 0 + is_nullable: 1 =head2 created_on @@ -56,7 +56,7 @@ __PACKAGE__->add_columns( "itemnumber", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "borrowernumber", - { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "created_on", { data_type => "timestamp", @@ -92,7 +92,12 @@ __PACKAGE__->belongs_to( "borrowernumber", "Koha::Schema::Result::Borrower", { borrowernumber => "borrowernumber" }, - { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, ); =head2 itemnumber @@ -111,8 +116,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-01-22 21:05:23 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KJ4G3ViVgIcXtUqmS18ang +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-03-05 14:53:41 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p6gHIqqhs2O5MD8pxBtV5Q # You can replace this text with custom code or comments, and it will be preserved on regeneration