From 439001f55e920f712eec1f736ca6d1de6155475c Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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