From c951c226bbae96f70e59e76777bb94a28ad9ad78 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 20 Apr 2023 04:13:33 +0000 Subject: [PATCH] Bug 33478: Schema updates --- Koha/Schema/Result/Letter.pm | 66 ++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Letter.pm b/Koha/Schema/Result/Letter.pm index 7e01641a34b..076d64c7043 100644 --- a/Koha/Schema/Result/Letter.pm +++ b/Koha/Schema/Result/Letter.pm @@ -119,6 +119,56 @@ lang of the notice last modification +=head2 font_size + + data_type: 'integer' + default_value: 10 + is_nullable: 0 + +font size used when notice is printed + +=head2 text_justify + + data_type: 'char' + default_value: 'L' + is_nullable: 0 + size: 1 + +text justification used when notice is printed + +=head2 units + + data_type: 'char' + default_value: 'INCH' + is_nullable: 0 + size: 20 + +units to use for print measurements + +=head2 notice_width + + data_type: 'float' + default_value: 8.5 + is_nullable: 0 + +width of notice + +=head2 top_margin + + data_type: 'float' + default_value: 0.5 + is_nullable: 0 + +top margin for notice + +=head2 left_margin + + data_type: 'float' + default_value: 0.5 + is_nullable: 0 + +left margin for notice + =cut __PACKAGE__->add_columns( @@ -160,6 +210,18 @@ __PACKAGE__->add_columns( default_value => \"current_timestamp", is_nullable => 0, }, + "font_size", + { data_type => "integer", default_value => 10, is_nullable => 0 }, + "text_justify", + { data_type => "char", default_value => "L", is_nullable => 0, size => 1 }, + "units", + { data_type => "char", default_value => "INCH", is_nullable => 0, size => 20 }, + "notice_width", + { data_type => "float", default_value => 8.5, is_nullable => 0 }, + "top_margin", + { data_type => "float", default_value => 0.5, is_nullable => 0 }, + "left_margin", + { data_type => "float", default_value => 0.5, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -232,8 +294,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-18 12:50:14 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MA3WvXK/1ZBc407iU7ZcrA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-20 04:12:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IYNjG8biUHhnkNQ900ON2A sub koha_object_class { 'Koha::Notice::Template'; -- 2.30.2