Bug 36453: DBRev 24.06.00.015
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
b20d919e00
commit
24ac009bbb
2
Koha.pm
2
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;
|
||||
|
|
|
|||
|
|
@ -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)" );
|
||||
}
|
||||
},
|
||||
Loading…
Reference in New Issue