From a70495db9dbdbdd9d34a336f22bfa6bda7dd6a18 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 2 Dec 2012 14:30:49 -0500 Subject: [PATCH] Add elo rot script. --- scripts/update_elos.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/update_elos.sql 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; -- 2.39.2