]> git.rm.cloudns.org Git - xonotic/xonstatdb.git/commitdiff
Support deactivating players.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 20 Feb 2012 16:42:21 +0000 (11:42 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 20 Feb 2012 16:42:21 +0000 (11:42 -0500)
scripts/update_ranks.sql
tables/players.tab

index 2fcd64ceda1bea871d184bcf3aa0a419f41c002a..77c7c796ac1f986ed1f4548028533908e7ad060b 100644 (file)
@@ -12,6 +12,7 @@ begin;
     over (partition by pe.game_type_cd order by pe.elo desc)
     from players p, player_elos pe
     where p.player_id = pe.player_id
+    and p.active_ind = 'Y'
     and pe.games > 32;
 
 end;
index b75a53adfb89420361d1a32a1f94414a2c2d7c83..26c212a567fd1fa8c831cb6a99b6031ea3a66ce7 100644 (file)
@@ -4,6 +4,7 @@ CREATE TABLE xonstat.players
   nick character varying(128),
   stripped_nick character varying(128),
   "location" character varying(100),
+  active_ind boolean NOT NULL default true,
   create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
   CONSTRAINT players_pk PRIMARY KEY (player_id)
 )