Bug 25858: Don't attempt to set flag if already set

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

(cherry picked from commit 6d6132777b)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Aleisha Amohia 2020-07-16 16:23:07 +12:00 committed by Victor Grousset/tuxayo
parent 40ba02f02d
commit 9d4bc60ea5
1 changed files with 1 additions and 1 deletions

View File

@ -18960,7 +18960,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))
});
SetVersion( $DBversion );