From e38634ceb8ae5d30d43055711b97395f580f0310 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 24 Jun 2020 10:06:57 +0000 Subject: [PATCH] Bug 25858: (bug 25858 follow-up) Don't attempt to set flag if already set Signed-off-by: Didier Gautheron Signed-off-by: Julian Maurice Signed-off-by: Jonathan Druart --- installer/data/mysql/updatedatabase.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 8cff5534a1..303164d558 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -20650,7 +20650,7 @@ if( CheckVersion( $DBversion ) ) { }); $dbh->do(q{ - UPDATE borrowers SET flags = flags + (1<<12) WHERE flags & (1 << 11) + UPDATE borrowers SET flags = flags + (1<<12) WHERE flags & (1 << 11) AND !(flags & (1 << 12)) }); NewVersion( $DBversion, 22868, 'Move suggestions_manage subpermission out of acquisition permission' ); -- 2.39.5