Koha/installer/data/mysql/db_revs/221200005.pl
Tomas Cohen Arazi 98eca9807f
Bug 31051: DBRev 22.12.00.005
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-02-22 10:03:38 -03:00

17 lines
626 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "31051",
description => "Add new system preference OPACShowSavings",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
VALUES ('OPACShowSavings', '', 'checkouthistory|summary|user', 'Show on the OPAC the total amount a patron has saved by using a library instead of purchasing, based on replacement prices', 'multiple')
});
say $out "Added new system preference 'OPACShowSavings'";
},
};