From 06e4af6ba8baf412e6adca5ef386255e31f2ead3 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 4 Sep 2018 14:34:14 +0100 Subject: [PATCH] Bug 11897: Add Boolean handling to dbic classes. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens --- Koha/Schema/Result/Stockrotationitem.pm | 4 ++++ Koha/Schema/Result/Stockrotationrota.pm | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Koha/Schema/Result/Stockrotationitem.pm b/Koha/Schema/Result/Stockrotationitem.pm index 2c571e5b18..613bb8a891 100644 --- a/Koha/Schema/Result/Stockrotationitem.pm +++ b/Koha/Schema/Result/Stockrotationitem.pm @@ -108,6 +108,10 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 15:50:42 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gkOISrUyWYqUHtmqe7ZHug +__PACKAGE__->add_columns( + '+indemand' => { is_boolean => 1 }, + '+fresh' => { is_boolean => 1 } +); # You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Stockrotationrota.pm b/Koha/Schema/Result/Stockrotationrota.pm index 3711675146..aae6f69ec2 100644 --- a/Koha/Schema/Result/Stockrotationrota.pm +++ b/Koha/Schema/Result/Stockrotationrota.pm @@ -100,6 +100,10 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 15:50:42 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lTIDZ+w+46Kniub5Tqpqlg +__PACKAGE__->add_columns( + '+cyclical' => { is_boolean => 1 }, + '+active' => { is_boolean => 1 } +); # You can replace this text with custom code or comments, and it will be preserved on regeneration 1; -- 2.39.5