-- drop tables first in reverse order
+drop table if exists player_ranks cascade;
drop table if exists player_elos cascade;
drop table if exists player_nicks cascade;
drop table if exists db_version cascade;
\i tables/db_version.tab
\i tables/player_nicks.tab
\i tables/player_elos.tab
+\i tables/player_ranks.tab
begin;
--- /dev/null
+CREATE TABLE player_ranks_history
+(
+ player_id integer NOT NULL,
+ nick character varying(128),
+ game_type_cd character varying(10) NOT NULL,
+ elo numeric NOT NULL,
+ rank integer NOT NULL,
+ create_dt timestamp without time zone
+)
+WITH (
+ OIDS=FALSE
+);
+ALTER TABLE player_ranks OWNER TO xonstat;