]> git.rm.cloudns.org Git - xonotic/xonstatdb.git/commitdiff
Add an MV for active players.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 30 Jan 2016 19:47:30 +0000 (14:47 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 30 Jan 2016 19:47:30 +0000 (14:47 -0500)
tables/active_players_mv.tab [new file with mode: 0755]

diff --git a/tables/active_players_mv.tab b/tables/active_players_mv.tab
new file mode 100755 (executable)
index 0000000..0d22213
--- /dev/null
@@ -0,0 +1,9 @@
+create table active_players_mv(
+       sort_order integer,
+       player_id bigint,
+       nick character varying(128),
+       alivetime interval,
+       create_dt timestamp without time zone default (now() at time zone 'UTC')
+);
+
+ALTER TABLE xonstat.active_players_mv OWNER TO xonstat;