1
0
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:
Kyle Spearrin 2017-06-16 14:55:40 -04:00
parent 5e9fc6b969
commit 7a6401c943

View File

@ -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