Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions