mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
update script fixes
This commit is contained in:
parent
5e9fc6b969
commit
7a6401c943
@ -1,3 +1,6 @@
|
||||
alter table [user] add [TwoFactorProviders] NVARCHAR (MAX) NULL
|
||||
go
|
||||
|
||||
update [user]
|
||||
set twofactorproviders = '{"0":{"Enabled":'+ (case when twofactorenabled = 1 then 'true' else 'false' end) +',"Remember":true,"MetaData":{"Key":"'+ authenticatorkey +'"}}}'
|
||||
where twofactorprovider is not null and twofactorprovider = 0
|
||||
|
Loading…
Reference in New Issue
Block a user