From 311258c78068067f149623f75887ed776c79bea8 Mon Sep 17 00:00:00 2001
From: Julian Maurice <julian.maurice@biblibre.com>
Date: Wed, 11 Dec 2024 14:03:50 +0100
Subject: [PATCH] Bug 38666: Flag new columns as boolean (SQL12)

Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr>
---
 Koha/Schema/Result/Deleteditem.pm | 1 +
 Koha/Schema/Result/Item.pm        | 1 +
 Koha/Schema/Result/OldReserve.pm  | 9 +++++----
 Koha/Schema/Result/Reserve.pm     | 9 +++++----
 4 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm
index da5226a09d..665e77e036 100644
--- a/Koha/Schema/Result/Deleteditem.pm
+++ b/Koha/Schema/Result/Deleteditem.pm
@@ -539,6 +539,7 @@ __PACKAGE__->set_primary_key("itemnumber");
 __PACKAGE__->add_columns(
     '+bookable'                          => { is_boolean => 1 },
     '+exclude_from_local_holds_priority' => { is_boolean => 1 },
+    '+is_closed_stack'                   => { is_boolean => 1 },
 );
 
 sub koha_objects_class {
diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm
index f3c1581de3..96fe8c609f 100644
--- a/Koha/Schema/Result/Item.pm
+++ b/Koha/Schema/Result/Item.pm
@@ -1032,6 +1032,7 @@ __PACKAGE__->belongs_to(
 __PACKAGE__->add_columns(
     '+bookable'                          => { is_boolean => 1 },
     '+exclude_from_local_holds_priority' => { is_boolean => 1 },
+    '+is_closed_stack'                   => { is_boolean => 1 },
 );
 
 # Relationship with orders via the aqorders_item table that not have foreign keys
diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm
index 0d38890b7a..d89ed7104d 100644
--- a/Koha/Schema/Result/OldReserve.pm
+++ b/Koha/Schema/Result/OldReserve.pm
@@ -491,10 +491,11 @@ __PACKAGE__->belongs_to(
 );
 
 __PACKAGE__->add_columns(
-    '+item_level_hold' => { is_boolean => 1 },
-    '+lowestPriority'  => { is_boolean => 1 },
-    '+suspend'         => { is_boolean => 1 },
-    '+non_priority'    => { is_boolean => 1 }
+    '+item_level_hold'                   => { is_boolean => 1 },
+    '+lowestPriority'                    => { is_boolean => 1 },
+    '+suspend'                           => { is_boolean => 1 },
+    '+non_priority'                      => { is_boolean => 1 },
+    '+closed_stack_request_slip_printed' => { is_boolean => 1 },
 );
 
 sub koha_object_class {
diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm
index 06bcc23055..95e9002ae3 100644
--- a/Koha/Schema/Result/Reserve.pm
+++ b/Koha/Schema/Result/Reserve.pm
@@ -502,10 +502,11 @@ __PACKAGE__->belongs_to(
 );
 
 __PACKAGE__->add_columns(
-    '+item_level_hold' => { is_boolean => 1 },
-    '+lowestPriority'  => { is_boolean => 1 },
-    '+suspend'         => { is_boolean => 1 },
-    '+non_priority'    => { is_boolean => 1 }
+    '+item_level_hold'                   => { is_boolean => 1 },
+    '+lowestPriority'                    => { is_boolean => 1 },
+    '+suspend'                           => { is_boolean => 1 },
+    '+non_priority'                      => { is_boolean => 1 },
+    '+closed_stack_request_slip_printed' => { is_boolean => 1 },
 );
 
 sub koha_object_class {
-- 
2.39.5