Bug 21961: DBRev 18.11.00.001
authorNick Clemens <nick@bywatersolutions.com>
Tue, 11 Dec 2018 20:31:19 +0000 (20:31 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 12 Dec 2018 10:59:10 +0000 (10:59 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit a02b322fe7f6a35c0613a33a2e266bb79a721260)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha.pm
installer/data/mysql/atomicupdate/bug_21961_didyouean_typo.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index be3093f..ed29178 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 = "18.11.00.000";
+$VERSION = "18.11.00.001";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_21961_didyouean_typo.sql b/installer/data/mysql/atomicupdate/bug_21961_didyouean_typo.sql
deleted file mode 100644 (file)
index a78f856..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-UPDATE permissions SET code = "manage_didyoumean" WHERE code = "manage_didyouean";
-UPDATE user_permissions SET code = "manage_didyoumean" WHERE code = "manage_didyouean";
-
--- Bug 21961 - Fix typo in manage_didyoumean permission
index d0eb565..0fde5c5 100755 (executable)
@@ -17135,6 +17135,18 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (18.11.00 release)\n";
 }
 
+$DBversion = '18.11.00.001';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do(q{
+        UPDATE permissions SET code = 'manage_didyoumean' WHERE code = 'manage_didyouean';
+    });
+    $dbh->do(q{
+        UPDATE user_permissions SET code = 'manage_didyoumean' WHERE code = 'manage_didyouean';
+    });
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion (Bug 21961 - Fix typo in manage_didyoumean permission)\n";
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.