1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

[PM-10365] Drop OrganizationUser AccessAll (#4701)

* Remove OrganizationUser.AccessAll

* Final database migrations
This commit is contained in:
Thomas Rittson
2024-09-24 16:26:35 +10:00
committed by GitHub
parent 02fee8c1e9
commit f7bc5dfb2e
23 changed files with 8918 additions and 127 deletions

View File

@ -0,0 +1,11 @@
-- Finalise removal of OrganizationUser.AccessAll column
-- Add default column value
-- Sprocs already have default value for rollback purposes, this just supports dropping the column itself
IF OBJECT_ID('[dbo].[DF_OrganizationUser_AccessAll]', 'D') IS NULL
AND COL_LENGTH('[dbo].[OrganizationUser]', 'AccessAll') IS NOT NULL
BEGIN
ALTER TABLE [dbo].[OrganizationUser]
ADD CONSTRAINT [DF_OrganizationUser_AccessAll] DEFAULT (0) FOR [AccessAll];
END
GO