Bug 10762: DBRev 23.06.00.051
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
7082820aee
commit
d1318e29a1
2 changed files with 6 additions and 3 deletions
2
Koha.pm
2
Koha.pm
|
@ -29,7 +29,7 @@ use vars qw{ $VERSION };
|
|||
# - #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
|
||||
# and is automatically called by Auth.pm when needed.
|
||||
$VERSION = "23.06.00.050";
|
||||
$VERSION = "23.06.00.051";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
@ -2,7 +2,7 @@ use Modern::Perl;
|
|||
|
||||
return {
|
||||
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 {
|
||||
my ($args) = @_;
|
||||
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
|
||||
}
|
||||
);
|
||||
|
||||
say $out "Added column 'creator_layouts.scale_width'";
|
||||
}
|
||||
unless ( column_exists( 'creator_layouts', 'scale_height' ) ) {
|
||||
$dbh->do(
|
||||
|
@ -21,7 +23,8 @@ return {
|
|||
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";
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue