The core infrastructure backend (API, database, Docker, etc).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
498 B

-- 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