ALTER TABLE xonstat.games_2014Q3 OWNER TO xonstat;
CREATE TABLE xonstat.games_2014Q4 (
- CHECK ( create_dt >= DATE '2014-10-01' AND create_dt < DATE '2014-01-01' )
+ CHECK ( create_dt >= DATE '2014-10-01' AND create_dt < DATE '2015-01-01' )
) INHERITS (games);
CREATE INDEX games_2014Q4_ix001 on games_2014Q4(create_dt);
ALTER TABLE xonstat.games_2014Q4 OWNER TO xonstat;
INSERT INTO team_game_stats_2014Q2 VALUES (NEW.*);
ELSIF (NEW.create_dt >= DATE '2014-07-01' AND NEW.create_dt < DATE '2014-10-01') THEN
INSERT INTO team_game_stats_2014Q3 VALUES (NEW.*);
- ELSIF (NEW.create_dt >= DATE '2014-10-01' AND NEW.create_dt < DATE '2015-10-01') THEN
+ ELSIF (NEW.create_dt >= DATE '2014-10-01' AND NEW.create_dt < DATE '2015-01-01') THEN
INSERT INTO team_game_stats_2014Q4 VALUES (NEW.*);
ELSE