From b22dab0b1085b82b98fcac64321ecdaa60e0d2da 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 Signed-off-by: David Nind --- 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 9a2084da3a..f56a3da96b 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.30.2