Bug 30611: DBRev 21.12.00.053
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 11 May 2022 00:49:27 +0000 (14:49 -1000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 11 May 2022 01:17:17 +0000 (15:17 -1000)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_30611.pl [deleted file]
installer/data/mysql/db_revs/211200053.pl [new file with mode: 0755]

diff --git a/Koha.pm b/Koha.pm
index 5341e4f..37e7221 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 = "21.12.00.052";
+$VERSION = "21.12.00.053";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_30611.pl b/installer/data/mysql/atomicupdate/bug_30611.pl
deleted file mode 100755 (executable)
index 2a8ba02..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-use Modern::Perl;
-
-return {
-    bug_number => "30611",
-    description => "Add STAFF_PASSWORD_RESET notice",
-    up => sub {
-        my ($args) = @_;
-        my ($dbh, $out) = @$args{qw(dbh out)};
-        # Add STAFF_PASSWORD_RESET notice
-        $dbh->do(q{
-            INSERT IGNORE INTO letter (module, code, name, is_html, title, content, message_transport_type) VALUES ('members', 'STAFF_PASSWORD_RESET', 'Online password reset', 1, "Koha password reset", "<html>\r\n<p>A librarian has reset the password for the account <strong><<user>></strong>.\r\n</p>\r\n<p>\r\nPlease create your new password using the following link:\r\n<br/><a href=\"<<passwordreseturl>>\"><<passwordreseturl>></a>\r\n</p>\r\n<p>This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.</p>\r\n<p>Thank you.</p>\r\n</html>", 'email');
-        });
-    },
-};
diff --git a/installer/data/mysql/db_revs/211200053.pl b/installer/data/mysql/db_revs/211200053.pl
new file mode 100755 (executable)
index 0000000..2a8ba02
--- /dev/null
@@ -0,0 +1,14 @@
+use Modern::Perl;
+
+return {
+    bug_number => "30611",
+    description => "Add STAFF_PASSWORD_RESET notice",
+    up => sub {
+        my ($args) = @_;
+        my ($dbh, $out) = @$args{qw(dbh out)};
+        # Add STAFF_PASSWORD_RESET notice
+        $dbh->do(q{
+            INSERT IGNORE INTO letter (module, code, name, is_html, title, content, message_transport_type) VALUES ('members', 'STAFF_PASSWORD_RESET', 'Online password reset', 1, "Koha password reset", "<html>\r\n<p>A librarian has reset the password for the account <strong><<user>></strong>.\r\n</p>\r\n<p>\r\nPlease create your new password using the following link:\r\n<br/><a href=\"<<passwordreseturl>>\"><<passwordreseturl>></a>\r\n</p>\r\n<p>This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.</p>\r\n<p>Thank you.</p>\r\n</html>", 'email');
+        });
+    },
+};