Bugzilla – Attachment 192112 Details for
Bug 40478
Add option to justify barcode on labels
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40478: Database update to add barcode_justify column to creator_layouts
Bug-40478-Database-update-to-add-barcodejustify-co.patch (text/plain), 1.37 KB, created by
Lucas Gass (lukeg)
on 2026-01-27 22:38:53 UTC
(
hide
)
Description:
Bug 40478: Database update to add barcode_justify column to creator_layouts
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2026-01-27 22:38:53 UTC
Size:
1.37 KB
patch
obsolete
>From 05a0a2ea58a7bb956b50736845d31a7c2e21ea06 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40478
:
191811
|
191812
|
192111
| 192112 |
192113
|
192114