Bug 32745: DBRev 22.12.00.025
[koha.git] / installer / data / mysql / db_revs / 221200005.pl
1 use Modern::Perl;
2
3 return {
4     bug_number  => "31051",
5     description => "Add new system preference OPACShowSavings",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9
10         $dbh->do(q{
11             INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
12                 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')
13         });
14
15         say $out "Added new system preference 'OPACShowSavings'";
16     },
17 };