From 594b300bc2e700cb193499b0b6bc956a7e263160 Mon Sep 17 00:00:00 2001 From: Arthur Suzuki Date: Wed, 14 Sep 2022 11:35:55 +0200 Subject: [PATCH] Bug 31086: DBIC Signed-off-by: Arthur Suzuki --- Koha/Schema/Result/Reserve.pm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm index 8ddda1437c..2d53762a55 100644 --- a/Koha/Schema/Result/Reserve.pm +++ b/Koha/Schema/Result/Reserve.pm @@ -61,7 +61,7 @@ foreign key from the biblio table defining which bib record this hold is on data_type: 'varchar' is_foreign_key: 1 - is_nullable: 1 + is_nullable: 0 size: 10 foreign key from the branches table defining which branch the patron wishes to pick this hold up at @@ -228,7 +228,7 @@ __PACKAGE__->add_columns( is_nullable => 0, }, "branchcode", - { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, + { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, "desk_id", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "notificationdate", @@ -337,12 +337,7 @@ __PACKAGE__->belongs_to( "branchcode", "Koha::Schema::Result::Branch", { branchcode => "branchcode" }, - { - is_deferrable => 1, - join_type => "LEFT", - on_delete => "CASCADE", - on_update => "CASCADE", - }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); =head2 club_holds_to_patron_holds @@ -421,8 +416,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BlMb2M0MEmFuTiMSSBEseg +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-14 09:34:13 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jvSp6ba0qGenaEBt4HEDww __PACKAGE__->belongs_to( "item", -- 2.39.5