mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[PM-17563] Add missing TaskId and HubHelper for PendingSecurityTasks (#5591)
* [PM-17563] Add case for PushType.PendingSecurityTasks * [PM-17563] Add missing TaskId property to NotificationStatusDetails and NotificationResponseModel * [PM-17563] Add migration script to re-create NotificationStatusDetailsView to include TaskId column * [PM-17563] Select explicit columns for NotificationStatusDetailsView and fix migration script
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
-- Recreate the NotificationStatusView to include the Notification.TaskId column
|
||||
CREATE OR ALTER VIEW [dbo].[NotificationStatusDetailsView]
|
||||
AS
|
||||
SELECT
|
||||
N.[Id],
|
||||
N.[Priority],
|
||||
N.[Global],
|
||||
N.[ClientType],
|
||||
N.[UserId],
|
||||
N.[OrganizationId],
|
||||
N.[Title],
|
||||
N.[Body],
|
||||
N.[CreationDate],
|
||||
N.[RevisionDate],
|
||||
N.[TaskId],
|
||||
NS.[UserId] AS [NotificationStatusUserId],
|
||||
NS.[ReadDate],
|
||||
NS.[DeletedDate]
|
||||
FROM
|
||||
[dbo].[Notification] AS N
|
||||
LEFT JOIN
|
||||
[dbo].[NotificationStatus] as NS
|
||||
ON
|
||||
N.[Id] = NS.[NotificationId]
|
||||
GO
|
Reference in New Issue
Block a user