Browse Source

Bug 31051: DBRev 22.12.00.005

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23.05.x
Tomás Cohen Arazi 4 months ago
parent
commit
98eca9807f
Signed by: tomascohen GPG Key ID: 0A272EA1B2F3C15F
  1. 2
      Koha.pm
  2. 12
      installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl
  3. 17
      installer/data/mysql/db_revs/221200005.pl

2
Koha.pm

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "22.12.00.004";
$VERSION = "22.12.00.005";
sub version {
return $VERSION;

12
installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl

@ -1,12 +0,0 @@
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') });
},
};

17
installer/data/mysql/db_revs/221200005.pl

@ -0,0 +1,17 @@
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'";
},
};
Loading…
Cancel
Save