Koha/installer/data/mysql/db_revs/231200012.pl
Katrin Fischer 158bcd03e6
Bug 35386: DBRev 23.12.00.012
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-22 15:07:39 +01:00

19 lines
663 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "35386",
description => "Add RESTAPIRenewalBranch preference",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('RESTAPIRenewalBranch','apiuserbranch','itemhomebranch|patronhomebranch|checkoutbranch|apiuserbranch|none','Choose how the branch for an API renewal is recorded in statistics','Choice')
}
);
say $out "Added new system preference 'RESTAPIRenewalBranch'";
},
};