From e05badfb9faabc618907cf44b20c86ab41c16573 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

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
---
 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 05174e1566..f38a91fe13 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 8ddda1437c..766d174e4b 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.20.1