mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
42bf04c46a
* SM-873: Remove SecretsManagerBetaColumn data migration and add new migration * SM-873: Remove EF latest migration
16 lines
594 B
Transact-SQL
16 lines
594 B
Transact-SQL
/*
|
|
Set SecretsManagerBeta to 1 for Organizations where UseSecretsManager is 1.
|
|
At this time (at GA release) these are the Organizations using SecretsManager in beta.
|
|
We want to mark they are using SecretsManager beta for the sunset period, before
|
|
eventually removing the SecretsManagerBeta column and turning off beta access.
|
|
|
|
Please note- this was a data migration script until SM-873.
|
|
*/
|
|
IF COL_LENGTH('[dbo].[Organization]', 'SecretsManagerBeta') IS NOT NULL
|
|
BEGIN
|
|
UPDATE [dbo].[Organization]
|
|
SET [SecretsManagerBeta] = 1
|
|
WHERE [UseSecretsManager] = 1
|
|
END
|
|
GO
|