From cc80e0dd65937a39187f3abbc47deb080bc7e9b1 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) Signed-off-by: thibault --- 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 5add75d1431..9c72d7599af 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -545,6 +545,7 @@ __PACKAGE__->add_columns( '+restricted' => { is_boolean => 0 }, '+stack' => { is_boolean => 0 }, '+withdrawn' => { is_boolean => 0 }, + '+is_closed_stack' => { is_boolean => 1 }, ); =head2 koha_objects_class diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index 8772ddc8316..c49cbbce9eb 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -1038,6 +1038,7 @@ __PACKAGE__->add_columns( '+restricted' => { is_boolean => 0 }, '+stack' => { is_boolean => 0 }, '+withdrawn' => { is_boolean => 0 }, + '+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 d16148dfb97..2d2a6d4d96c 100644 --- a/Koha/Schema/Result/OldReserve.pm +++ b/Koha/Schema/Result/OldReserve.pm @@ -527,10 +527,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 }, ); =head2 koha_object_class diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm index 12f743187a5..4f8fd57df5c 100644 --- a/Koha/Schema/Result/Reserve.pm +++ b/Koha/Schema/Result/Reserve.pm @@ -538,10 +538,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 }, ); =head2 koha_object_class -- 2.39.5