From 0e4d6116ef4840cc68408faec1f2e0377ec584cb Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 22 Apr 2020 21:04:32 +0000 Subject: [PATCH] Bug 23111: Making is_default a boolean flag Signed-off-by: Bernardo Gonzalez Kriegel --- Koha/Schema/Result/BiblioFramework.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Schema/Result/BiblioFramework.pm b/Koha/Schema/Result/BiblioFramework.pm index 9a2084da3ae..f56a3da96b9 100644 --- a/Koha/Schema/Result/BiblioFramework.pm +++ b/Koha/Schema/Result/BiblioFramework.pm @@ -84,5 +84,8 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -# You can replace this text with custom content, and it will be preserved on regeneration +__PACKAGE__->add_columns( + '+is_default' => { is_boolean => 1 }, +); + 1; -- 2.11.0