Bug 22844: Add is_boolean flag for new 'mandatory' column
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 3 Feb 2020 13:50:28 +0000 (14:50 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 14:08:22 +0000 (16:08 +0200)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Schema/Result/BorrowerAttributeType.pm

index 70abaa3..849e331 100644 (file)
@@ -192,6 +192,10 @@ __PACKAGE__->add_columns(
     '+keep_for_pseudonymization' => { is_boolean => 1 },
 );
 
+__PACKAGE__->add_columns(
+    '+mandatory' => { is_boolean => 1 },
+);
+
 sub koha_object_class {
     'Koha::Patron::Attribute::Type';
 }