Koha/installer/data/mysql/db_revs/240600001.pl
Martin Renvoize 1c779aaca8
Bug 36986: DBRev 23.12.00.023
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2024-06-05 14:33:52 +01:00

23 lines
680 B
Perl
Executable file

use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "36986",
description => "Rename StaffLoginLibraryBasedOnIP system preference",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
UPDATE systempreferences SET variable = "StaffLoginLibraryBasedOnIP"
WHERE variable = "StaffLoginBranchBasedOnIP"
}
) == 1
&& say_success(
$out,
"Renamed system preference 'StaffLoginBranchBasedOnIP' to 'StaffLoginLibraryBasedOnIP'"
);
},
};