From: Ant Zucaro Date: Sun, 2 Dec 2012 19:30:49 +0000 (-0500) Subject: Add elo rot script. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a70495db9dbdbdd9d34a336f22bfa6bda7dd6a18;p=xonotic%2Fxonstatdb.git Add elo rot script. --- diff --git a/scripts/update_elos.sql b/scripts/update_elos.sql new file mode 100644 index 0000000..1665dd2 --- /dev/null +++ b/scripts/update_elos.sql @@ -0,0 +1,5 @@ +begin; + update player_elos + set elo=least(elo-1, 100.00) + where update_dt < (current_timestamp at time zone 'UTC' - interval '30 days'); +end;