]> git.rm.cloudns.org Git - xonotic/xonstatdb.git/commitdiff
Add an MV for active maps.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 2 Feb 2016 01:49:27 +0000 (20:49 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 2 Feb 2016 01:49:27 +0000 (20:49 -0500)
tables/active_maps_mv.sql [new file with mode: 0755]

diff --git a/tables/active_maps_mv.sql b/tables/active_maps_mv.sql
new file mode 100755 (executable)
index 0000000..f7afdae
--- /dev/null
@@ -0,0 +1,9 @@
+create table active_maps_mv(
+       sort_order integer,
+       map_id bigint,
+       map_name character varying(128),
+       games integer,
+       create_dt timestamp without time zone default (now() at time zone 'UTC')
+);
+
+ALTER TABLE xonstat.active_maps_mv OWNER TO xonstat;