From 8f848711027b23a27ddfa6b34134e5b5d72471ba Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 29 Jan 2024 10:43:51 +0000 Subject: [PATCH] Bug 28869: DBIx schema changes for AuthorisedValueCategory Content-Type: text/plain; charset=utf-8 Note: Also adds boolean flag in the custom part! Signed-off-by: Marcel de Rooy --- Koha/Schema/Result/AuthorisedValueCategory.pm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Koha/Schema/Result/AuthorisedValueCategory.pm b/Koha/Schema/Result/AuthorisedValueCategory.pm index debbdf3aa7..420c7178b0 100644 --- a/Koha/Schema/Result/AuthorisedValueCategory.pm +++ b/Koha/Schema/Result/AuthorisedValueCategory.pm @@ -36,6 +36,12 @@ __PACKAGE__->table("authorised_value_categories"); default_value: 0 is_nullable: 1 +=head2 is_integer_only + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + =cut __PACKAGE__->add_columns( @@ -43,6 +49,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 }, "is_system", { data_type => "tinyint", default_value => 0, is_nullable => 1 }, + "is_integer_only", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -105,11 +113,12 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-28 09:07:15 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EfBQNJN5wgpFPlWVP4U+qw +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-01-29 10:43:30 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qVFHGnJp7VL2eUR5ZFZvAQ __PACKAGE__->add_columns( - '+is_system' => { is_boolean => 1 }, + '+is_system' => { is_boolean => 1 }, + '+is_integer_only' => { is_boolean => 1 }, ); sub koha_objects_class { -- 2.30.2