After a while, all my old managers stopped using the word "bad" in that context.
To keep this off topic, the following trigger will do what taming wants:
Code:
CREATE TRIGGER Activity_DismissNewBookTiles
after insert on Activity
for each row
when ( new.Type IN ('RecentBook') AND EXISTS
(SELECT 1 FROM content c where c.contentId = new.Id and c.ReadStatus = 0)
)
begin
update Activity
set Enabled = 'false'
where rowid = new.rowid;
end
It could be combines with the other trigger, but personally, I won't be using this.