mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 09:02:48 -05:00
SM-802: Add SecretsManagerBeta Column Migration (#3065)
* SM-802: Add SecretsManagerBetaColumn SQL migration and Org table update * SM-802: Run EF Migrations for SecretsManagerBeta * SM-802: Update the two Org procs and View, and move data migration to a separate file * SM-802: Add missing comma to Organization_Create * SM-802: Remove extra GO statement from data migration script * SM-802: Add SecretsManagerBeta to OrganizationResponseModel * SM-802: Move SecretsManagerBeta from OrganizationResponseModel to OrganizationSubscriptionResponseModel. Use sp_refreshview instead of sp_refreshsqlmodule in the migration script. * SM-802: Remove OrganizationUserOrganizationDetailsView.sql changes * SM-802: Remove SecretsManagerBetaColumn migration * SM-802: Add SecretsManagerBetaColumn migration * SM-802: Remove OrganizationUserOrganizationDetailsView update * SM-802: Remove migration * SM-802: Rename SecretsManagerBetaColumn migration files to have the correct date (now that this has passed QA) * SM-802: Add SecretsManagerBeta migration
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
/*
|
||||
This is the data migration script for adding the SecretsManagerBeta column.
|
||||
The initial migration util/Migrator/DbScripts/2023-07-03_00_SecretsManagerBetaColumn.sql should be run prior.
|
||||
There is no final migration.
|
||||
*/
|
||||
IF COL_LENGTH('[dbo].[Organization]', 'SecretsManagerBeta') IS NOT NULL
|
||||
BEGIN
|
||||
-- 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.
|
||||
UPDATE [dbo].[Organization]
|
||||
SET [SecretsManagerBeta] = 1
|
||||
WHERE [UseSecretsManager] = 1
|
||||
END
|
||||
GO
|
Reference in New Issue
Block a user