From 6a7c0b4a85912ff98a3b3b342e1cba730667ac99 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 20 Apr 2023 22:53:08 +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..fa02fca7cf4 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: 14 + 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 + is_nullable: 0 + +top margin for notice + +=head2 left_margin + + data_type: 'float' + default_value: 0 + 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 => 14, 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, is_nullable => 0 }, + "left_margin", + { data_type => "float", default_value => 0, 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 22:36:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FDrn53Zb2jdXi3x8rAsAsw sub koha_object_class { 'Koha::Notice::Template'; -- 2.30.2