From: Ant Zucaro Date: Wed, 27 Apr 2011 22:40:42 +0000 (-0400) Subject: Add hit and fired to player_weapon_stats. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=65db5e252aabb38c6d25fc3dd13df5fec199c5bb;p=xonotic%2Fxonstatdb.git Add hit and fired to player_weapon_stats. --- diff --git a/tables/player_weapon_stats.tab b/tables/player_weapon_stats.tab index 1b3dee7..23d6a64 100644 --- a/tables/player_weapon_stats.tab +++ b/tables/player_weapon_stats.tab @@ -6,6 +6,8 @@ CREATE TABLE xonstat.player_weapon_stats 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, create_dt timestamp without time zone NOT NULL DEFAULT now(), CONSTRAINT player_weapon_stats_pk PRIMARY KEY (player_weapon_stats_id), @@ -23,4 +25,59 @@ CREATE TABLE xonstat.player_weapon_stats WITH ( OIDS=FALSE ); +CREATE INDEX player_weap_stats_ix01 on player_weapon_stats(create_dt); ALTER TABLE xonstat.player_weapon_stats OWNER TO xonstat; + +CREATE TABLE xonstat.player_weapon_stats_2011Q2 ( + CHECK ( create_dt >= DATE '2011-04-01' AND create_dt < DATE '2011-07-01' ) +) INHERITS (player_weapon_stats); +CREATE INDEX player_weap_stats_2011Q2_ix01 on player_weapon_stats_2011Q2(create_dt); +ALTER TABLE xonstat.player_weapon_stats_2011Q2 OWNER TO xonstat; + +CREATE TABLE xonstat.player_weapon_stats_2011Q3 ( + CHECK ( create_dt >= DATE '2011-07-01' AND create_dt < DATE '2011-10-01' ) +) INHERITS (player_weapon_stats); +CREATE INDEX player_weap_stats_2011Q3_ix01 on player_weapon_stats_2011Q3(create_dt); +ALTER TABLE xonstat.player_weapon_stats_2011Q3 OWNER TO xonstat; + +CREATE TABLE xonstat.player_weapon_stats_2011Q4 ( + CHECK ( create_dt >= DATE '2011-10-01' AND create_dt < DATE '2012-01-01' ) +) INHERITS (player_weapon_stats); +CREATE INDEX player_weap_stats_2011Q4_ix01 on player_weapon_stats_2011Q4(create_dt); +ALTER TABLE xonstat.player_weapon_stats_2011Q4 OWNER TO xonstat; + +CREATE TABLE xonstat.player_weapon_stats_2012Q1 ( + CHECK ( create_dt >= DATE '2012-01-01' AND create_dt < DATE '2012-04-01' ) +) INHERITS (player_weapon_stats); +CREATE INDEX player_weap_stats_2012Q1_ix01 on player_weapon_stats_2012Q1(create_dt); +ALTER TABLE xonstat.player_weapon_stats_2012Q1 OWNER TO xonstat; + +CREATE TABLE xonstat.player_weapon_stats_2012Q2 ( + CHECK ( create_dt >= DATE '2012-04-01' AND create_dt < DATE '2012-07-01' ) +) INHERITS (player_weapon_stats); +CREATE INDEX player_weap_stats_2012Q2_ix01 on player_weapon_stats_2012Q2(create_dt); +ALTER TABLE xonstat.player_weapon_stats_2012Q2 OWNER TO xonstat; + +CREATE TABLE xonstat.player_weapon_stats_2012Q3 ( + CHECK ( create_dt >= DATE '2012-07-01' AND create_dt < DATE '2012-10-01' ) +) INHERITS (player_weapon_stats); +CREATE INDEX player_weap_stats_2012Q3_ix01 on player_weapon_stats_2012Q3(create_dt); +ALTER TABLE xonstat.player_weapon_stats_2012Q3 OWNER TO xonstat; + +CREATE TABLE xonstat.player_weapon_stats_2012Q4 ( + CHECK ( create_dt >= DATE '2012-10-01' AND create_dt < DATE '2013-01-01' ) +) INHERITS (player_weapon_stats); +CREATE INDEX player_weap_stats_2012Q4_ix01 on player_weapon_stats_2012Q4(create_dt); +ALTER TABLE xonstat.player_weapon_stats_2012Q4 OWNER TO xonstat; + +CREATE TABLE xonstat.player_weapon_stats_2013Q1 ( + CHECK ( create_dt >= DATE '2013-01-01' AND create_dt < DATE '2013-04-01' ) +) INHERITS (player_weapon_stats); +CREATE INDEX player_weap_stats_2013Q1_ix01 on player_weapon_stats_2013Q1(create_dt); +ALTER TABLE xonstat.player_weapon_stats_2013Q1 OWNER TO xonstat; + +CREATE TABLE xonstat.player_weapon_stats_2013Q2 ( + CHECK ( create_dt >= DATE '2013-04-01' AND create_dt < DATE '2013-07-01' ) +) INHERITS (player_weapon_stats); +CREATE INDEX player_weap_stats_2013Q2_ix01 on player_weapon_stats_2013Q2(create_dt); +ALTER TABLE xonstat.player_weapon_stats_2013Q2 OWNER TO xonstat;