From 98eca9807f4f1ae6b5e4f162d399cbe305b848ed Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 22 Feb 2023 09:22:12 -0300 Subject: [PATCH] Bug 31051: DBRev 22.12.00.005 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../bug_31051_-_add_OPACShowSavings_syspref.pl | 12 ------------ installer/data/mysql/db_revs/221200005.pl | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 13 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl create mode 100755 installer/data/mysql/db_revs/221200005.pl diff --git a/Koha.pm b/Koha.pm index ad6f1828b8..40fd3adb3a 100644 --- a/Koha.pm +++ b/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; diff --git a/installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl b/installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl deleted file mode 100755 index f78f77b9af..0000000000 --- a/installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl +++ /dev/null @@ -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') }); - }, -}; diff --git a/installer/data/mysql/db_revs/221200005.pl b/installer/data/mysql/db_revs/221200005.pl new file mode 100755 index 0000000000..378b1fde9d --- /dev/null +++ b/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'"; + }, +}; -- 2.39.2