From 9ff3758fb3499f100da4ab64dc53bd8a37dab806 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 2 Jul 2024 11:19:09 +0000 Subject: [PATCH] Bug 28530: Update existing schema files Signed-off-by: Andrew Fuerste-Henry --- 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 c9d55a81826..c0a8a6c6b0f 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 @ 2024-07-02 11:14:12 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3TsuWEa3C2DEKJ1gR+V2Ig __PACKAGE__->add_columns( '+pickup_location' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm index 87b1cdcfb6d..9c19e368cf7 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 @ 2024-07-02 11:14:12 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qJ8/zlwESoKfSq3JJY8Jug sub koha_object_class { 'Koha::Item::Transfer'; diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index 22880fdb438..ccb427244a6 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -283,6 +283,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 @@ -334,8 +349,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-08 14:38:07 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9NChRQA4eBUqHpLXUFmOuw +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-02 11:17:44 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aGs0iOKQmDteJjVriZ3Tgw __PACKAGE__->add_columns( '+automatic_checkin' => { is_boolean => 1 }, -- 2.30.2