mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[PM-10368] Drop Group.AccessAll (#4700)
- Add default constraint - Update sprocs to remove column - Drop column
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
-- Finalise removal of Group.AccessAll column
|
||||
-- Drop the column
|
||||
|
||||
IF OBJECT_ID('[dbo].[DF_Group_AccessAll]', 'D') IS NOT NULL
|
||||
BEGIN
|
||||
ALTER TABLE [dbo].[Group]
|
||||
DROP CONSTRAINT [DF_Group_AccessAll];
|
||||
END
|
||||
GO
|
||||
|
||||
IF COL_LENGTH('[dbo].[Group]', 'AccessAll') IS NOT NULL
|
||||
BEGIN
|
||||
ALTER TABLE
|
||||
[dbo].[Group]
|
||||
DROP COLUMN
|
||||
[AccessAll]
|
||||
END
|
||||
GO
|
||||
|
||||
-- Refresh views
|
||||
IF OBJECT_ID('[dbo].[GroupView]') IS NOT NULL
|
||||
BEGIN
|
||||
EXECUTE sp_refreshsqlmodule N'[dbo].[GroupView]';
|
||||
END
|
||||
GO
|
Reference in New Issue
Block a user