From f016b306815a9095a07a41ca086cb6683b27143c Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 18 Dec 2023 14:20:13 -0500 Subject: [PATCH] Bug 28530: Update existing schema files --- 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 39c6ce72d3d..ab7e1266616 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -785,6 +785,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 @@ -951,8 +966,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-19 18:12:48 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZN7YtRwqkiYZYU1U+Yi+SA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-12-15 13:10:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zKusLR9L4QR2N8RlDbbzyA __PACKAGE__->add_columns( '+pickup_location' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm index 87b1cdcfb6d..cb0ad6e5638 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.07049 @ 2023-12-18 18:00:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Lw0eShVAkXHj7XuDKuh7eg sub koha_object_class { 'Koha::Item::Transfer'; diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index d005da023f4..0e379081af4 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -282,6 +282,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 @@ -333,8 +348,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-22 11:31:25 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SoRKIMEqXE2+RkGq6zBejA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-12-15 13:10:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J2tVQ7bGx4yaeiwzJxJbtg __PACKAGE__->add_columns( '+automatic_checkin' => { is_boolean => 1 }, -- 2.30.2