mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 22:23:18 +08:00
13 lines
283 B
MySQL
13 lines
283 B
MySQL
|
|
IF COL_LENGTH('[dbo].[Event]', 'GrantedServiceAccountId') IS NULL
|
||
|
|
BEGIN
|
||
|
|
ALTER TABLE [dbo].[Event]
|
||
|
|
ADD [GrantedServiceAccountId] UNIQUEIDENTIFIER NULL;
|
||
|
|
END
|
||
|
|
GO
|
||
|
|
|
||
|
|
IF OBJECT_ID('[dbo].[EventView]', 'V') IS NOT NULL
|
||
|
|
BEGIN
|
||
|
|
EXECUTE sp_refreshview N'[dbo].[EventView]'
|
||
|
|
END
|
||
|
|
GO
|