Bug 30588: Add missing atomic update
Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
76c7f857e5
commit
c98b623313
1 changed files with 17 additions and 0 deletions
17
installer/data/mysql/atomicupdate/bug_30588.pl
Executable file
17
installer/data/mysql/atomicupdate/bug_30588.pl
Executable file
|
@ -0,0 +1,17 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => "30588",
|
||||
description => "Add an 'enforce' option for TwoFactorAuthentication",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences
|
||||
SET options="enforced|enabled|disabled",
|
||||
value=CASE value WHEN '1' THEN 'enabled' ELSE 'disabled' END,
|
||||
type="Choice"
|
||||
WHERE variable="TwoFactorAuthentication"
|
||||
});
|
||||
},
|
||||
};
|
Loading…
Reference in a new issue