This will allow me to disable the ranking of players without
disabling the entire player record. This is to be applied
in cases where players have cheated more than once but don't
warrant a full kickban. Instead I can now make their record
essentially harmless with respect to everyone else.
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;
+ and p.active_ind = True
+ and pe.active_ind = True
+ and pe.games >= 32;
end;
game_type_cd character varying(10) NOT NULL,
games integer NOT NULL default 0,
elo numeric NOT NULL,
+ active_ind boolean NOT NULL default true,
create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
CONSTRAINT player_elos_pk PRIMARY KEY (player_id, game_type_cd),
CONSTRAINT player_elos_fk01 FOREIGN KEY (player_id)