From dbebec2ca47f562e77caa1cea6e6b769f4c8ee7d Mon Sep 17 00:00:00 2001 From: Maryse Simard Date: Tue, 1 Oct 2019 10:55:56 -0400 Subject: [PATCH] Bug 12446: Schema update Category.pm Signed-off-by: David Nind Signed-off-by: Kyle M Hall --- Koha/Schema/Result/Category.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index 9cd2dc71ae..3bb27da222 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -137,6 +137,12 @@ type of Koha patron (Adult, Child, Professional, Organizational, Statistical, St wheither or not a patron of this category can renew books or place holds once their card has expired. 0 means they can, 1 means they cannot, -1 means use syspref BlockExpiredPatronOpacActions +=head2 canbeguarantee + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + =head2 default_privacy data_type: 'enum' @@ -228,6 +234,8 @@ __PACKAGE__->add_columns( default_value => -1, is_nullable => 0, }, + "canbeguarantee", + { data_type => "tinyint", default_value => 0, is_nullable => 0}, "default_privacy", { data_type => "enum", @@ -351,6 +359,10 @@ __PACKAGE__->add_columns( '+exclude_from_local_holds_priority' => { is_boolean => 1 }, ); +__PACKAGE__->add_columns( + '+canbeguarantee' => { is_boolean => 1 } +); + sub koha_object_class { 'Koha::Patron::Category'; } -- 2.25.1