From f817e502d42535982a937899c3b4de2ec3a777dc Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 31 Jul 2025 21:16:00 +0000 Subject: [PATCH] Bug 28530: DBIC changes DO NOT PUSH --- Koha/Schema/Result/Branch.pm | 19 +++++++++++++++++-- Koha/Schema/Result/Branchtransfer.pm | 7 ++++--- Koha/Schema/Result/Itemtype.pm | 19 +++++++++++++++++-- 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index 787c0772195..af29b732efb 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -800,6 +800,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 library_float_limits + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "library_float_limits", + "Koha::Schema::Result::LibraryFloatLimit", + { "foreign.branchcode" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 library_groups Type: has_many @@ -996,8 +1011,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-03 13:13:25 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiH1QNlDqKcq9GeM85Pu0A +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-31 21:15:22 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lHdqvm0eGq7IyP/EtgAF8w __PACKAGE__->has_many( "additional_field_values", diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm index 53abfdbe6b9..dd9b6085df8 100644 --- a/Koha/Schema/Result/Branchtransfer.pm +++ b/Koha/Schema/Result/Branchtransfer.pm @@ -103,7 +103,7 @@ any comments related to the transfer =head2 reason data_type: 'enum' - extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve","TransferCancellation","Recall","RecallCancellation"]} + extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve","TransferCancellation","Recall","RecallCancellation","LibraryFloatLimit"]} is_nullable: 1 what triggered the transfer @@ -188,6 +188,7 @@ __PACKAGE__->add_columns( "TransferCancellation", "Recall", "RecallCancellation", + "LibraryFloatLimit", ], }, is_nullable => 1, @@ -275,8 +276,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-03 16:48:17 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BkhtfptiDqKKSv/hmCQy3w +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-31 21:15:22 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cIsElyRdGbOPbVLv3ncllw =head2 koha_object_class diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index 7e69f304abc..8728821efef 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -293,6 +293,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 library_float_limits + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "library_float_limits", + "Koha::Schema::Result::LibraryFloatLimit", + { "foreign.itemtype" => "self.itemtype" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 old_reserves Type: has_many @@ -344,8 +359,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-10-25 13:25:14 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jd0dYE700dpg1IiRnfbcEg +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-31 21:15:22 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:arNLS+UCZ4+PeAEKKC5xMA __PACKAGE__->add_columns( '+automatic_checkin' => { is_boolean => 1 }, -- 2.39.5