[update_most_points_most_villages_best_rank_last_activity] fix player.last_activity condition
This commit is contained in:
parent
909d3491af
commit
54502843cc
|
@ -133,7 +133,7 @@ const (
|
|||
NEW.best_rank = NEW.rank;
|
||||
NEW.best_rank_at = now();
|
||||
END IF;
|
||||
if TG_TABLE_NAME = 'users' THEN
|
||||
if TG_TABLE_NAME = 'players' THEN
|
||||
IF NEW.points > OLD.points OR NEW.score_att > OLD.score_att THEN
|
||||
NEW.last_activity_at = now();
|
||||
END IF;
|
||||
|
|
Reference in New Issue