Bug 10762: DBRev 23.06.00.051

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2023-10-25 10:10:37 -03:00
parent 7082820aee
commit d1318e29a1
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 6 additions and 3 deletions

View file

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion. # - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself # used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed. # and is automatically called by Auth.pm when needed.
$VERSION = "23.06.00.050"; $VERSION = "23.06.00.051";
sub version { sub version {
return $VERSION; return $VERSION;

View file

@ -2,7 +2,7 @@ use Modern::Perl;
return { return {
bug_number => "10762", bug_number => "10762",
description => "Add 2 columns in 'creator_layouts' which define the width and height of barcodes", description => "Make it possible to adjust the barcode height and width on labels",
up => sub { up => sub {
my ($args) = @_; my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)}; my ( $dbh, $out ) = @$args{qw(dbh out)};
@ -13,6 +13,8 @@ return {
ADD COLUMN scale_width FLOAT default 0.8 NOT NULL AFTER font_size 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' ) ) { unless ( column_exists( 'creator_layouts', 'scale_height' ) ) {
$dbh->do( $dbh->do(
@ -21,7 +23,8 @@ return {
ADD COLUMN scale_height FLOAT default 0.01 NOT NULL AFTER scale_width ADD COLUMN scale_height FLOAT default 0.01 NOT NULL AFTER scale_width
} }
); );
say $out "Added column 'creator_layouts.scale_height'";
} }
say $out "Table creator_layouts updated with 2 new columns";
}, },
} }