From 19e90c62b13bba47b8ccbac79f932a68b66df3b9 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 8 May 2024 14:39:03 +0000 Subject: [PATCH] Bug 36687: DBIC schema update Signed-off-by: Katrin Fischer (cherry picked from commit 94e9bda510f2b8fe54845c7b55c6336a0ceed228) Signed-off-by: Fridolin Somers --- Koha/Schema/Result/Itemtype.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index d005da023f..22880fdb43 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -106,8 +106,9 @@ default text be recorded in the column note when the processing fee is applied =head2 notforloan - data_type: 'smallint' - is_nullable: 1 + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 1 if the item is not for loan, 0 if the item is available for loan @@ -199,7 +200,7 @@ __PACKAGE__->add_columns( "processfee", { data_type => "decimal", is_nullable => 1, size => [28, 6] }, "notforloan", - { data_type => "smallint", is_nullable => 1 }, + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "imageurl", { data_type => "varchar", is_nullable => 1, size => 200 }, "summary", @@ -333,8 +334,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-22 11:31:25 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SoRKIMEqXE2+RkGq6zBejA +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-08 14:38:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9NChRQA4eBUqHpLXUFmOuw __PACKAGE__->add_columns( '+automatic_checkin' => { is_boolean => 1 }, -- 2.39.5