From 869182dcf153431f4c03b3fae3cc32e679178bae Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 10 May 2022 08:34:05 +0200
Subject: [PATCH] Bug 30650: DBIC specific

Note for QA - a false positive is raised by the QA tools:

"""
The new column curbside_pickup_opening_slots.day is using TINYINT(1) as
type but is not defined as boolean in the schema file
(Koha/Schema/Result/CurbsidePickupOpeningSlot.pm)
"""

=> It's not a boolean!

Sponsored-by: Association KohaLa - https://koha-fr.org/

Signed-off-by: Koha Team University Lyon 3 <koha@univ-lyon3.fr>
---
 Koha/Schema/Result/CurbsidePickupPolicy.pm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Koha/Schema/Result/CurbsidePickupPolicy.pm b/Koha/Schema/Result/CurbsidePickupPolicy.pm
index 1cca912ce8b..c660539220e 100644
--- a/Koha/Schema/Result/CurbsidePickupPolicy.pm
+++ b/Koha/Schema/Result/CurbsidePickupPolicy.pm
@@ -148,5 +148,10 @@ __PACKAGE__->has_many(
 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RyZGROB1+g3kb2bo6mwrUQ
 
 
-# You can replace this text with custom code or comments, and it will be preserved on regeneration
+__PACKAGE__->add_columns(
+    '+enabled' => { is_boolean => 1 },
+    '+enable_waiting_holds_only' => { is_boolean => 1 },
+    '+patron_scheduled_pickup' => { is_boolean => 1 },
+);
+
 1;
-- 
2.25.1