Files
server/util/Migrator/DbScripts/2024-09-02_00_DropGroupAccessAll_DefaultColumnValue.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
349 B
MySQL
Raw Permalink Normal View History

-- Finalise removal of Group.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_Group_AccessAll]', 'D') IS NULL
BEGIN
ALTER TABLE [dbo].[Group]
ADD CONSTRAINT [DF_Group_AccessAll] DEFAULT (0) FOR [AccessAll];
END
GO