Bug 25936: DBRev 22.06.00.059
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 17:30:39 +0000 (14:30 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 17:30:39 +0000 (14:30 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha.pm
installer/data/mysql/atomicupdate/bug_25936.pl [deleted file]
installer/data/mysql/db_revs/220600059.pl [new file with mode: 0755]

diff --git a/Koha.pm b/Koha.pm
index 69375f5..0f04112 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.06.00.058";
+$VERSION = "22.06.00.059";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_25936.pl b/installer/data/mysql/atomicupdate/bug_25936.pl
deleted file mode 100755 (executable)
index 56970ed..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-use Modern::Perl;
-
-return {
-    bug_number => "25936",
-    description => "A password change notification feature",
-    up => sub {
-        my ($args) = @_;
-        my ($dbh, $out) = @$args{qw(dbh out)};
-
-        # Add PASSWORD_CHANGE notice
-        $dbh->do( q{
-            INSERT IGNORE INTO letter (module, code, name, title, content, message_transport_type) VALUES ('members', 'PASSWORD_CHANGE', 'Notification of password change', 'Library account password change notification',
-            "Dear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nWe want to notify you that your password has been changed. If you did not change it yourself (or requested that change), please contact library staff.\r\n\r\nYour library.", 'email');
-        });
-
-        # Add systempreference
-        $dbh->do(q{
-            INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
-            VALUES ('NotifyPasswordChange','0','','Notify patrons whenever their password is changed.','YesNo')
-        });
-    },
-};
diff --git a/installer/data/mysql/db_revs/220600059.pl b/installer/data/mysql/db_revs/220600059.pl
new file mode 100755 (executable)
index 0000000..56970ed
--- /dev/null
@@ -0,0 +1,22 @@
+use Modern::Perl;
+
+return {
+    bug_number => "25936",
+    description => "A password change notification feature",
+    up => sub {
+        my ($args) = @_;
+        my ($dbh, $out) = @$args{qw(dbh out)};
+
+        # Add PASSWORD_CHANGE notice
+        $dbh->do( q{
+            INSERT IGNORE INTO letter (module, code, name, title, content, message_transport_type) VALUES ('members', 'PASSWORD_CHANGE', 'Notification of password change', 'Library account password change notification',
+            "Dear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nWe want to notify you that your password has been changed. If you did not change it yourself (or requested that change), please contact library staff.\r\n\r\nYour library.", 'email');
+        });
+
+        # Add systempreference
+        $dbh->do(q{
+            INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
+            VALUES ('NotifyPasswordChange','0','','Notify patrons whenever their password is changed.','YesNo')
+        });
+    },
+};