Bug 21961: DBRev 18.11.00.001

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit a02b322fe7)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2018-12-11 20:31:19 +00:00 committed by Martin Renvoize
parent 3f92fca658
commit a9f618f96d
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
3 changed files with 13 additions and 5 deletions

View File

@ -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;

View File

@ -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

View File

@ -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.