Remove stat type column, as we only care about scoreboard stats.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 7 Jul 2011 19:44:36 +0000 (15:44 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 7 Jul 2011 19:44:36 +0000 (15:44 -0400)
tables/player_game_stats.tab

index 7071388..0ac34ba 100644 (file)
@@ -3,7 +3,6 @@ CREATE TABLE xonstat.player_game_stats
   player_game_stat_id bigserial NOT NULL,
   player_id integer NOT NULL,
   game_id bigint NOT NULL,
-  stat_type character varying(1),
   nick character varying(64),
   team integer,
   "rank" integer,
@@ -32,7 +31,7 @@ CREATE TABLE xonstat.player_game_stats
   CONSTRAINT player_game_stats_fk002 FOREIGN KEY (game_id)
       REFERENCES xonstat.games (game_id) MATCH SIMPLE
       ON UPDATE NO ACTION ON DELETE NO ACTION,
-  CONSTRAINT player_game_stats_uk001 UNIQUE (player_id, game_id, stat_type)
+  CONSTRAINT player_game_stats_uk001 UNIQUE (player_id, game_id)
 )
 WITH (
   OIDS=FALSE