mirror of
https://github.com/bitwarden/server.git
synced 2025-02-16 01:51:21 +01:00
Limit migrations to only once (#1996)
This commit is contained in:
parent
c54c39b28c
commit
bbb55ef8de
@ -201,6 +201,7 @@ BEGIN
|
|||||||
0 AS [Type], -- 0 represents 'Default' type
|
0 AS [Type], -- 0 represents 'Default' type
|
||||||
[RevisionDate]
|
[RevisionDate]
|
||||||
FROM [dbo].[Organization]
|
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'
|
PRINT N'Dropping old column'
|
||||||
ALTER TABLE
|
ALTER TABLE
|
||||||
|
Loading…
Reference in New Issue
Block a user