From df0fea3f7314dc1e7cbc32eb9ef741f9b0cdc802 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 18 Apr 2023 04:52:54 +0000 Subject: [PATCH] Bug 33478: Schema updates --- Koha/Schema/Result/Letter.pm | 167 ++++++++++++++++++++++++++++++++++- 1 file changed, 165 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Letter.pm b/Koha/Schema/Result/Letter.pm index 7e01641a34b..1e6b121d091 100644 --- a/Koha/Schema/Result/Letter.pm +++ b/Koha/Schema/Result/Letter.pm @@ -119,6 +119,137 @@ lang of the notice last modification +=head2 font + + data_type: 'char' + default_value: 'TR' + is_nullable: 0 + size: 10 + +font used when notice is printed + +=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 individual notice + +=head2 notice_length + + data_type: 'float' + default_value: 11 + is_nullable: 0 + +length of individual notice + +=head2 page_width + + data_type: 'float' + default_value: 8.5 + is_nullable: 0 + +width of printer page + +=head2 page_length + + data_type: 'float' + default_value: 11 + is_nullable: 0 + +length of printer page + +=head2 top_text_margin + + data_type: 'float' + default_value: 0 + is_nullable: 0 + +top margin for notice text + +=head2 left_text_margin + + data_type: 'float' + default_value: 0 + is_nullable: 0 + +left margin for notice text + +=head2 top_margin + + data_type: 'float' + default_value: 0.5 + is_nullable: 0 + +top margin for page + +=head2 left_margin + + data_type: 'float' + default_value: 0.5 + is_nullable: 0 + +left margin for page + +=head2 cols + + data_type: 'float' + default_value: 1 + is_nullable: 0 + +number of notices to print across the width of the page + +=head2 rows + + data_type: 'float' + default_value: 1 + is_nullable: 0 + +number of notices to print down the length of the page + +=head2 col_gap + + data_type: 'float' + default_value: 0 + is_nullable: 0 + +padding between notices across the width of the page + +=head2 row_gap + + data_type: 'float' + default_value: 0 + is_nullable: 0 + +padding between notices down the length of the page + =cut __PACKAGE__->add_columns( @@ -160,6 +291,38 @@ __PACKAGE__->add_columns( default_value => \"current_timestamp", is_nullable => 0, }, + "font", + { data_type => "char", default_value => "TR", is_nullable => 0, size => 10 }, + "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 }, + "notice_length", + { data_type => "float", default_value => 11, is_nullable => 0 }, + "page_width", + { data_type => "float", default_value => 8.5, is_nullable => 0 }, + "page_length", + { data_type => "float", default_value => 11, is_nullable => 0 }, + "top_text_margin", + { data_type => "float", default_value => 0, is_nullable => 0 }, + "left_text_margin", + { data_type => "float", default_value => 0, 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 }, + "cols", + { data_type => "float", default_value => 1, is_nullable => 0 }, + "rows", + { data_type => "float", default_value => 1, is_nullable => 0 }, + "col_gap", + { data_type => "float", default_value => 0, is_nullable => 0 }, + "row_gap", + { data_type => "float", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -232,8 +395,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-18 04:46:53 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zKDzlnhjBAUv7IIF0dLVfw sub koha_object_class { 'Koha::Notice::Template'; -- 2.30.2