Koha/installer/data/mysql/db_revs/220600068.pl
Tomas Cohen Arazi 83d06c60fe
Bug 30588: DBRev 22.06.00.068
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-10-21 11:44:49 -03:00

17 lines
510 B
Perl
Executable file

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"
});
},
};