1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

Fix UserKdf and UserApiKey migrations to only update null values (#1494)

This commit is contained in:
Vince Grassia
2021-08-03 15:54:47 -04:00
committed by GitHub
parent f37c87c0e1
commit a31c231749
2 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,8 @@ UPDATE
[dbo].[User]
SET
[ApiKey] = (SELECT [dbo].[SecureRandomString]())
WHERE
[ApiKey] IS NULL
GO
-- Change dbo.User.ApiKey to not null to enforece all future users to have one on create