1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Limit migrations to only once (#1996)

This commit is contained in:
Justin Baur 2022-05-12 10:11:47 -04:00 committed by GitHub
parent c54c39b28c
commit bbb55ef8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,6 +201,7 @@ BEGIN
0 AS [Type], -- 0 represents 'Default' type
[RevisionDate]
FROM [dbo].[Organization]
WHERE NOT EXISTS(SELECT [Id] FROM [dbo].[OrganizationApiKey] [ApiKey] WHERE [ApiKey].[OrganizationId] = [OrganizationId] AND [ApiKey].[Type] = 0)
PRINT N'Dropping old column'
ALTER TABLE