From 05a0a2ea58a7bb956b50736845d31a7c2e21ea06 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 21 Jan 2026 18:30:51 +0000 Subject: [PATCH] Bug 40478: Database update to add barcode_justify column to creator_layouts --- .../data/mysql/atomicupdate/bug_40478.pl | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_40478.pl diff --git a/installer/data/mysql/atomicupdate/bug_40478.pl b/installer/data/mysql/atomicupdate/bug_40478.pl new file mode 100755 index 00000000000..ddaebfa0c0c --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_40478.pl @@ -0,0 +1,22 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); + +return { + bug_number => "40478", + description => "Add barcode justification option to label creator", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + unless ( column_exists( 'creator_layouts', 'barcode_justify' ) ) { + $dbh->do( + q{ + ALTER TABLE creator_layouts + ADD COLUMN barcode_justify CHAR(1) DEFAULT 'L' + AFTER text_justify + } + ); + } + say_success( $out, "barcode_justify column added to creator_layouts" ); + }, +}; -- 2.39.5