1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00
bitwarden-server/util/Migrator/DbScripts/2024-09-25_01_SyncLimitCollectionCreationColumn.sql
Addison Beck 6a51e3b1a9
Split LimitCollectionCreationDeletion into two database columns (#4709)
* Add new columns to `dbo.Organization` & its references

* Feed existing data into new `dbo.Organization` column

* Update Entity Framework database definitions

* Move new EF columns out of the core entity definition

* Generate Entity Framework migrations

* Feed existing data into new `Organization` Entity Framework columns

* Add a where clause to SQL migration
2024-10-03 13:43:54 -04:00

9 lines
167 B
Transact-SQL

-- Sync existing data
UPDATE [dbo].[Organization]
SET
[LimitCollectionCreation] = 1,
[LimitCollectionDeletion] = 1
WHERE [LimitCollectionCreationDeletion] = 1
GO