From 24ac009bbb0cf43082ccf1589f21f6de3b38458a Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 18 Jul 2024 15:37:08 +0000 Subject: [PATCH] Bug 36453: DBRev 24.06.00.015 Signed-off-by: Katrin Fischer --- Koha.pm | 2 +- .../{atomicupdate/bug_36453.pl => db_revs/240600015.pl} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename installer/data/mysql/{atomicupdate/bug_36453.pl => db_revs/240600015.pl} (92%) diff --git a/Koha.pm b/Koha.pm index 42c604a90e..f58bc4d1a5 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 = "24.06.00.014"; +$VERSION = "24.06.00.015"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_36453.pl b/installer/data/mysql/db_revs/240600015.pl similarity index 92% rename from installer/data/mysql/atomicupdate/bug_36453.pl rename to installer/data/mysql/db_revs/240600015.pl index 573605b9e9..3ee123f615 100755 --- a/installer/data/mysql/atomicupdate/bug_36453.pl +++ b/installer/data/mysql/db_revs/240600015.pl @@ -3,7 +3,7 @@ use Koha::Installer::Output qw(say_warning say_failure say_success say_info); return { bug_number => "36453", - description => "Update BlockExpiredPatronOpacActions where 240600002.pl was already run", + description => "Update BlockExpiredPatronOpacActions where 24.06.000.02 was already run", up => sub { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; @@ -18,11 +18,11 @@ return { $sth->execute; my $data_type = $sth->fetchrow(); - if( $data_type eq 'mediumtext' ) { + if ( $data_type eq 'mediumtext' ) { $dbh->do( "ALTER TABLE categories MODIFY BlockExpiredPatronOpacActions varchar(128) NOT NULL DEFAULT 'follow_syspref_BlockExpiredPatronOpacActions' COMMENT 'specific actions expired patrons of this category are blocked from performing or if the BlockExpiredPatronOpacActions system preference is to be followed'" ) and say_success( $out, "Updated categories.BlockExpiredPatronOpacActions to varchar(128)" ); - }else{ + } else { say_info( $out, "categories.BlockExpiredPatronOpacActions already varchar(128)" ); } }, -- 2.39.5