1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00
bitwarden-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 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