From 6ef37079c5a6f0869c058406507e96cf6dde70c1 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Mon, 6 Oct 2025 10:37:27 +0200 Subject: [PATCH] Bug 40292: (QA follow-up) Tidy db_revs/241200018.pl, atomicupdate/bug_40292.pl Content-Type: text/plain; charset=utf-8 Signed-off-by: Paul Derscheid Signed-off-by: Marcel de Rooy --- installer/data/mysql/atomicupdate/bug_40292.pl | 2 +- installer/data/mysql/db_revs/241200018.pl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_40292.pl b/installer/data/mysql/atomicupdate/bug_40292.pl index e6a7e54bd3..9265c5adb3 100755 --- a/installer/data/mysql/atomicupdate/bug_40292.pl +++ b/installer/data/mysql/atomicupdate/bug_40292.pl @@ -8,7 +8,7 @@ return { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; - if ( column_exists('additional_field_values', 'new_record_id') ) { + if ( column_exists( 'additional_field_values', 'new_record_id' ) ) { $dbh->do( q{ ALTER TABLE additional_field_values CHANGE COLUMN new_record_id record_id VARCHAR(11) NOT NULL DEFAULT '' COMMENT 'record_id'; } ); diff --git a/installer/data/mysql/db_revs/241200018.pl b/installer/data/mysql/db_revs/241200018.pl index 1ef9917fa3..318e00714d 100755 --- a/installer/data/mysql/db_revs/241200018.pl +++ b/installer/data/mysql/db_revs/241200018.pl @@ -12,8 +12,9 @@ return { $sth->execute(); my $column_info = $sth->fetchrow_hashref(); - if ( column_exists('additional_field_values', 'new_record_id') ) { - die "The database is an inconsistent state, a previous upgrade went wrong. Please try a new upgrade from a previous backup and using a newest version of Koha"; + if ( column_exists( 'additional_field_values', 'new_record_id' ) ) { + die + "The database is an inconsistent state, a previous upgrade went wrong. Please try a new upgrade from a previous backup and using a newest version of Koha"; } elsif ( $column_info && $column_info->{Type} eq 'int(11)' ) { # Only run the migration if record_id is still an integer type -- 2.39.5