Bugzilla – Attachment 178942 Details for
Bug 28530
Allow configuration of floating limits by item type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28530: Update existing schema files
Bug-28530-Update-existing-schema-files.patch (text/plain), 3.93 KB, created by
Andrew Fuerste-Henry
on 2025-03-04 21:23:40 UTC
(
hide
)
Description:
Bug 28530: Update existing schema files
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2025-03-04 21:23:40 UTC
Size:
3.93 KB
patch
obsolete
>From 9136be2e3fe5ce2cd287c411ecebf9b3f4557983 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 2 Jul 2024 11:19:09 +0000 >Subject: [PATCH] Bug 28530: Update existing schema files > >Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> > >Signed-off-by: Kris Becker <kbecker@jcls.org> >--- > Koha/Schema/Result/Branch.pm | 21 ++++++++++++++++++--- > Koha/Schema/Result/Branchtransfer.pm | 9 +++++---- > Koha/Schema/Result/Itemtype.pm | 17 ++++++++++++++++- > 3 files changed, 39 insertions(+), 8 deletions(-) > >diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm >index c9d55a8182..e398a15e8f 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<Koha::Schema::Result::LibraryFloatLimit> >+ >+=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 }, >@@ -1011,4 +1026,4 @@ sub koha_objects_class { > 'Koha::Libraries'; > } > >-1; >+1; >\ No newline at end of file >diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm >index 87b1cdcfb6..ac718b5856 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'; >@@ -285,4 +286,4 @@ sub koha_objects_class { > 'Koha::Item::Transfers'; > } > >-1; >+1; >\ No newline at end of file >diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm >index 46aa24926d..ef65c37610 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<Koha::Schema::Result::LibraryFloatLimit> >+ >+=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 >@@ -380,4 +395,4 @@ sub koha_objects_class { > 'Koha::ItemTypes'; > } > >-1; >+1; >\ No newline at end of file >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28530
:
160038
|
160039
|
160040
|
160041
|
160042
|
160043
|
160044
|
160045
|
160046
|
160047
|
160048
|
160049
|
160050
|
160053
|
160054
|
160055
|
160056
|
160057
|
160058
|
160061
|
160062
|
160063
|
160064
|
160065
|
160066
|
160067
|
160068
|
160071
|
160072
|
160073
|
160074
|
160075
|
160076
|
160077
|
160078
|
160079
|
160080
|
160081
|
160082
|
160083
|
160084
|
163919
|
168343
|
168344
|
168345
|
168346
|
168347
|
168348
|
168349
|
168350
|
178762
|
178763
|
178764
|
178765
|
178766
|
178767
|
178768
|
178769
|
178783
|
178784
|
178785
|
178934
|
178935
|
178936
|
178937
|
178938
|
178939
|
178940
|
178941
|
178942
|
178943
|
178944
|
178945
|
178946
|
179943
|
179944
|
179945
|
179946
|
179947
|
179948
|
179949
|
179950
|
179951
|
179952
|
179953
|
179954
|
179955
|
180028
|
182931