]> de.git.xonotic.org Git - xonotic/xonstatdb.git/commitdiff
Fix weapon_cd in child table.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 28 Apr 2011 01:58:31 +0000 (21:58 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 28 Apr 2011 01:58:31 +0000 (21:58 -0400)
tables/player_weapon_stats.tab

index 23d6a64fc0a79ca9f04026ff2123788d1dc6d330..05474f799196497d9665073353f95d67a242432e 100644 (file)
@@ -3,12 +3,12 @@ CREATE TABLE xonstat.player_weapon_stats
   player_weapon_stats_id bigserial NOT NULL,
   player_id integer NOT NULL,
   game_id bigint NOT NULL,
-  weapon_cd character varying(3) NOT NULL,
-  actual integer NOT NULL,
-  max integer NOT NULL,
-  hit integer NOT NULL,
-  fired integer NOT NULL,
-  frags integer NOT NULL,
+  weapon_cd character varying(15) NOT NULL,
+  actual integer NOT NULL default 0,
+  max integer NOT NULL default 0,
+  hit integer NOT NULL default 0,
+  fired integer NOT NULL default 0,
+  frags integer NOT NULL default 0,
   create_dt timestamp without time zone NOT NULL DEFAULT now(),
   CONSTRAINT player_weapon_stats_pk PRIMARY KEY (player_weapon_stats_id),
   CONSTRAINT player_weapon_stats_fk001 FOREIGN KEY (player_id)