Koha/installer/data/mysql/db_revs/230600051.pl
Tomas Cohen Arazi d1318e29a1
Bug 10762: DBRev 23.06.00.051
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-25 10:35:31 -03:00

30 lines
962 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "10762",
description => "Make it possible to adjust the barcode height and width on labels",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
unless ( column_exists( 'creator_layouts', 'scale_width' ) ) {
$dbh->do(
q {
ALTER TABLE creator_layouts
ADD COLUMN scale_width FLOAT default 0.8 NOT NULL AFTER font_size
}
);
say $out "Added column 'creator_layouts.scale_width'";
}
unless ( column_exists( 'creator_layouts', 'scale_height' ) ) {
$dbh->do(
q {
ALTER TABLE creator_layouts
ADD COLUMN scale_height FLOAT default 0.01 NOT NULL AFTER scale_width
}
);
say $out "Added column 'creator_layouts.scale_height'";
}
},
}