Bug 36453: DBRev 24.06.00.015

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2024-07-18 15:37:08 +00:00
parent b20d919e00
commit 24ac009bbb
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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)" );
}
},