Koha/installer/data/mysql/db_revs/230600072.pl
Tomas Cohen Arazi 1e56d4953a
Bug 34188: DBRev 23.06.00.072
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-11-08 17:41:42 -03:00

19 lines
649 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "34188",
description => "Force staff to select a library when logging into the staff interface.",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
VALUES ('ForceLibrarySelection', '0', NULL,'Force staff to select a library when logging into the staff interface.', 'YesNo')}
);
# sysprefs
say $out "Added new system preference 'ForceLibrarySelection'";
},
};