]> git.rm.cloudns.org Git - xonotic/xonstatdb.git/commitdiff
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 70713882d650f2cee95f646d7d61773a7da10c2d..0ac34ba2e395b1cefaf7d9bd9ad16922eb7a6a17 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