From e1f7f3a661e211f853d834aeda95eb064dece424 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 28 Jan 2022 10:08:48 -1000 Subject: [PATCH] Bug 21729: Update DBIC schema Signed-off-by: Fridolin Somers --- 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..484760e6e5 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 @ 2022-01-28 20:08:09 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A3iHpf4nDeIpPsapNzdv8w __PACKAGE__->belongs_to( "item", diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm index 8ddda1437c..04b81a1960 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 @ 2022-01-28 20:08:09 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Q8/GFCOkXdn+jg69HZ0GQ __PACKAGE__->belongs_to( "item", -- 2.39.5