From d1318e29a13bde873484f942f0b5a56bd9380b13 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 25 Oct 2023 10:10:37 -0300 Subject: [PATCH] Bug 10762: DBRev 23.06.00.051 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../update-BZ_10762.pl => db_revs/230600051.pl} | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) rename installer/data/mysql/{atomicupdate/update-BZ_10762.pl => db_revs/230600051.pl} (76%) diff --git a/Koha.pm b/Koha.pm index 21a91be022..0e0f8b55a8 100644 --- a/Koha.pm +++ b/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; diff --git a/installer/data/mysql/atomicupdate/update-BZ_10762.pl b/installer/data/mysql/db_revs/230600051.pl similarity index 76% rename from installer/data/mysql/atomicupdate/update-BZ_10762.pl rename to installer/data/mysql/db_revs/230600051.pl index 7494e464c4..28a7aa8bca 100755 --- a/installer/data/mysql/atomicupdate/update-BZ_10762.pl +++ b/installer/data/mysql/db_revs/230600051.pl @@ -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"; }, }