From 8f835302d083d1f28f4b803e1708564d5795df16 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 11 Dec 2024 14:03:50 +0100 Subject: [PATCH] Bug 38666: Flag new columns as boolean (SQL12) --- 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