Skip to content

dbo.Broadcaster "LastUpdated" Column Hasn't Been Properly Implemented #65

@SimpleSandman

Description

@SimpleSandman

No update is being applied to the "LastUpdated" column. Remember to use UTC time.

Look into writing an UPDATE TRIGGER from the SQL side.

CREATE TRIGGER BroadcasterLastUpdated ON dbo.Broadcaster
AFTER UPDATE
AS
BEGIN
    UPDATE dbo.Broadcaster 
    SET LastUpdated = GETUTCDATE()
    FROM dbo.Broadcaster b
    INNER JOIN inserted i
        ON b.Id = i.Id
END
GO

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions