Koha/installer/data/mysql/db_revs/231200047.pl
Katrin Fischer 5ddd89cbb2
Bug 35169: DBRev 23.12.00.047
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-07 15:53:50 +02:00

23 lines
958 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "35169",
description => "Add new system preferences for longoverdue.pl borrowers categories",
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
('DefaultLongOverduePatronCategories', '', NULL, 'Set the patron categories that will be listed when longoverdue cronjob is executed', 'choice'),
('DefaultLongOverdueSkipPatronCategories', '', NULL, 'Set the patron categories that will not be listed when longoverdue cronjob is executed', 'choice');
}
);
# sysprefs
say $out "Added new system preference 'DefaultLongOverduePatronCategories'";
say $out "Added new system preference 'DefaultLongOverdueSkipPatronCategories'";
},
};