Bugzilla – Attachment 135840 Details for
Bug 22456
Allow patrons to cancel their waiting holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22456: DBIC update
Bug-22456-DBIC-update.patch (text/plain), 2.47 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-06-08 20:50:11 UTC
(
hide
)
Description:
Bug 22456: DBIC update
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-06-08 20:50:11 UTC
Size:
2.47 KB
patch
obsolete
>From 3df81473f6e4124ec9d201429d00ebdd12c63213 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 18 Apr 2022 13:08:19 -0300 >Subject: [PATCH] Bug 22456: DBIC update > >Sponsored-by: Montgomery County Public Libraries > >Signed-off-by: David Nind <david@davidnind.com> >--- > Koha/Schema/Result/HoldCancellationRequest.pm | 95 +++++++++++++++++++ > 1 file changed, 95 insertions(+) > create mode 100644 Koha/Schema/Result/HoldCancellationRequest.pm > >diff --git a/Koha/Schema/Result/HoldCancellationRequest.pm b/Koha/Schema/Result/HoldCancellationRequest.pm >new file mode 100644 >index 0000000000..668f07e868 >--- /dev/null >+++ b/Koha/Schema/Result/HoldCancellationRequest.pm >@@ -0,0 +1,95 @@ >+use utf8; >+package Koha::Schema::Result::HoldCancellationRequest; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+=head1 NAME >+ >+Koha::Schema::Result::HoldCancellationRequest >+ >+=cut >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+=head1 TABLE: C<hold_cancellation_requests> >+ >+=cut >+ >+__PACKAGE__->table("hold_cancellation_requests"); >+ >+=head1 ACCESSORS >+ >+=head2 hold_cancellation_request_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+Unique ID of the cancellation request >+ >+=head2 hold_id >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+ID of the hold >+ >+=head2 creation_date >+ >+ data_type: 'timestamp' >+ datetime_undef_if_invalid: 1 >+ is_nullable: 1 >+ >+Time and date the cancellation request was created >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "hold_cancellation_request_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "hold_id", >+ { data_type => "integer", is_nullable => 0 }, >+ "creation_date", >+ { >+ data_type => "timestamp", >+ datetime_undef_if_invalid => 1, >+ is_nullable => 1, >+ }, >+); >+ >+=head1 PRIMARY KEY >+ >+=over 4 >+ >+=item * L</hold_cancellation_request_id> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->set_primary_key("hold_cancellation_request_id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-26 15:06:37 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wmU51f9/ljDRncAnLEF0yA >+ >+# FIXME: Revisit after bug 25260 >+__PACKAGE__->might_have( >+ "hold", >+ "Koha::Schema::Result::Reserve", >+ { "foreign.reserve_id" => "self.hold_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+sub koha_object_class { >+ 'Koha::Hold::CancellationRequest'; >+} >+sub koha_objects_class { >+ 'Koha::Hold::CancellationRequests'; >+} >+ >+1; >-- >2.34.1
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 22456
:
135165
|
135166
|
135167
|
135168
|
135169
|
135170
|
135171
|
135319
|
135320
|
135321
|
135322
|
135323
|
135324
|
135325
|
135326
|
135349
|
135350
|
135351
|
135352
|
135396
|
135397
|
135398
|
135399
|
135400
|
135401
|
135402
|
135403
|
135404
|
135405
|
135406
|
135407
|
135408
|
135409
|
135410
|
135411
|
135430
|
135830
|
135831
|
135832
|
135838
|
135839
|
135840
|
135841
|
135842
|
135843
|
135844
|
135845
|
135846
|
137580
|
137581
|
137582
|
137583
|
137584
|
137585
|
137586
|
137587
|
137588
|
137589
|
137591
|
138209
|
138210
|
138211
|
138212
|
138213
|
138214
|
138215
|
138216
|
138217
|
138218