Bugzilla – Attachment 126161 Details for
Bug 21729
When reverting a hold the expirationdate should be reset
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21729: DBIC schema changes
Bug-21729-DBIC-schema-changes.patch (text/plain), 3.32 KB, created by
Jonathan Druart
on 2021-10-13 09:38:09 UTC
(
hide
)
Description:
Bug 21729: DBIC schema changes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-13 09:38:09 UTC
Size:
3.32 KB
patch
obsolete
>From 439001f55e920f712eec1f736ca6d1de6155475c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 13 Oct 2021 11:02:39 +0200 >Subject: [PATCH] Bug 21729: DBIC schema changes > >--- > Koha/Schema/Result/OldReserve.pm | 14 ++++++++++++-- > Koha/Schema/Result/Reserve.pm | 16 +++++++++++++--- > 2 files changed, 25 insertions(+), 5 deletions(-) > >diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm >index 05174e1566e..f38a91fe138 100644 >--- a/Koha/Schema/Result/OldReserve.pm >+++ b/Koha/Schema/Result/OldReserve.pm >@@ -157,6 +157,14 @@ the date the item was marked as waiting for the patron at the library > > the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) > >+=head2 patron_expiration_date >+ >+ data_type: 'date' >+ datetime_undef_if_invalid: 1 >+ is_nullable: 1 >+ >+the date the hold expires - usually the date entered by the patron to say they don't need the hold after a certain date >+ > =head2 lowestPriority > > accessor: 'lowest_priority' >@@ -249,6 +257,8 @@ __PACKAGE__->add_columns( > { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, > "expirationdate", > { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, >+ "patron_expiration_date", >+ { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, > "lowestPriority", > { > accessor => "lowest_priority", >@@ -367,8 +377,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aVQsdX811LswCsWyBqkSbQ >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-13 09:02:27 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iT/Gw6XeV9mF/bEFG8ioWQ > > __PACKAGE__->belongs_to( > "item", >diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm >index 8ddda1437c5..766d174e4bd 100644 >--- a/Koha/Schema/Result/Reserve.pm >+++ b/Koha/Schema/Result/Reserve.pm >@@ -160,7 +160,15 @@ the date the item was marked as waiting for the patron at the library > datetime_undef_if_invalid: 1 > is_nullable: 1 > >-the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) >+the date the hold expires (calculated value) >+ >+=head2 patron_expiration_date >+ >+ data_type: 'date' >+ datetime_undef_if_invalid: 1 >+ is_nullable: 1 >+ >+the date the hold expires - usually the date entered by the patron to say they don't need the hold after a certain date > > =head2 lowestPriority > >@@ -258,6 +266,8 @@ __PACKAGE__->add_columns( > { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, > "expirationdate", > { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, >+ "patron_expiration_date", >+ { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, > "lowestPriority", > { > accessor => "lowest_priority", >@@ -421,8 +431,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BlMb2M0MEmFuTiMSSBEseg >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-13 09:02:27 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yUzQH1U6JfQ32rG92IhnPg > > __PACKAGE__->belongs_to( > "item", >-- >2.25.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 21729
:
126160
|
126161
|
126162
|
126203
|
126258
|
127797
|
127798
|
127799
|
127800
|
127867
|
127868
|
127869
|
127870
|
127877
|
127878
|
127879
|
127880
|
128761
|
129090
|
129091
|
129092
|
129093
|
129094