mirror of
https://github.com/bitwarden/server.git
synced 2024-12-05 14:23:30 +01:00
0da62f9cee
- Add default constraint - Update sprocs to remove column - Drop column
11 lines
349 B
Transact-SQL
11 lines
349 B
Transact-SQL
-- 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
|