mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 05:28:15 -05: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]
|
update [user]
|
||||||
set twofactorproviders = '{"0":{"Enabled":'+ (case when twofactorenabled = 1 then 'true' else 'false' end) +',"Remember":true,"MetaData":{"Key":"'+ authenticatorkey +'"}}}'
|
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
|
where twofactorprovider is not null and twofactorprovider = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user