Bug 31051: DBRev 22.12.00.005
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 22 Feb 2023 12:22:12 +0000 (09:22 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 22 Feb 2023 13:03:38 +0000 (10:03 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha.pm
installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl [deleted file]
installer/data/mysql/db_revs/221200005.pl [new file with mode: 0755]

diff --git a/Koha.pm b/Koha.pm
index ad6f182..40fd3ad 100644 (file)
--- 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 (executable)
index f78f77b..0000000
+++ /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 (executable)
index 0000000..378b1fd
--- /dev/null
@@ -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'";
+    },
+};