mirror of
https://github.com/bitwarden/server
synced 2025-12-26 13:13:24 +00:00
update script fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user