From 49971e0697300ce61f644458a1f94b492da5548d Mon Sep 17 00:00:00 2001 From: Shi Yao Wang Date: Fri, 15 Aug 2025 16:28:22 -0400 Subject: [PATCH] Bug 20644: [DO NOT PUSH] DBIC Update Signed-off-by: Lisette Scheer --- Koha/Schema/Result/Itemtype.pm | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index 7e69f304abc..c7ae1bf9680 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -176,6 +176,15 @@ Group this item type with others with the same value on OPAC search options If automatic checkin is enabled for items of this type +=head2 checkprevcheckout + + data_type: 'enum' + default_value: 'inherit' + extra: {list => ["yes","no","inherit"]} + is_nullable: 0 + +produce a warning for a patron if a item of this type has previously been checked out to the same patron if 'yes', not if 'no', defer to category setting if 'inherit'. + =head2 bookable data_type: 'tinyint' @@ -230,6 +239,13 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 80 }, "automatic_checkin", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "checkprevcheckout", + { + data_type => "enum", + default_value => "inherit", + extra => { list => ["yes", "no", "inherit"] }, + is_nullable => 0, + }, "bookable", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); @@ -344,8 +360,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-10-25 13:25:14 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jd0dYE700dpg1IiRnfbcEg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2025-08-15 16:25:27 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TZcz0ppbZwT7yhRsqkg1xg __PACKAGE__->add_columns( '+automatic_checkin' => { is_boolean => 1 }, -- 2.39.5