Koha/installer/data/mysql/db_revs/231200060.pl
Katrin Fischer 3a8e38b449
Bug 36665: DBRev 23.12.00.060
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-22 16:18:13 +02:00

21 lines
714 B
Perl
Executable file

use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "36665",
description => "Add system preference StaffLoginBranchBasedOnIP",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('StaffLoginBranchBasedOnIP', '0','', 'Set the logged in library for the user based on their current IP','YesNo')
}
);
say $out "Added new system preference 'StaffLoginBranchBasedOnIP'";
},
};