From a0eea1797fa245272c3be8c2bac311c354462f59 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 3 Feb 2020 14:50:28 +0100 Subject: [PATCH] Bug 22844: Add is_boolean flag for new 'mandatory' column Signed-off-by: Kyle M Hall Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Katrin Fischer --- Koha/Schema/Result/BorrowerAttributeType.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Koha/Schema/Result/BorrowerAttributeType.pm b/Koha/Schema/Result/BorrowerAttributeType.pm index 307e01e15f..6bfbb2bc5e 100644 --- a/Koha/Schema/Result/BorrowerAttributeType.pm +++ b/Koha/Schema/Result/BorrowerAttributeType.pm @@ -173,6 +173,10 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-03 13:48:05 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+gaC4iMv0bphNEflh7Sm5w +__PACKAGE__->add_columns( + '+mandatory' => { is_boolean => 1 }, +); + sub koha_object_class { 'Koha::Patron::Attribute::Type'; } -- 2.11.0