Bugzilla – Attachment 160047 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.92 KB, created by
Kyle M Hall (khall)
on 2023-12-19 16:57:21 UTC
(
hide
)
Description:
Bug 28530: Update existing schema files
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-12-19 16:57:21 UTC
Size:
3.92 KB
patch
obsolete
>From 351497d22f9311695c5cbefe7dea1e6a4ccd9330 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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<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 >@@ -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<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 >@@ -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
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