]> git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - tables/active_servers_mv.tab
Give the active MVs primary keys.
[xonotic/xonstatdb.git] / tables / active_servers_mv.tab
index 28fcb6d8f27647afa20adf496b8be1e13604561f..a6be890dfddd718a8f0ac60f0a1ec9bc2c2ca80f 100755 (executable)
@@ -3,7 +3,8 @@ create table active_servers_mv(
        server_id bigint,
        server_name character varying(128),
        games integer,
-       create_dt timestamp without time zone default (now() at time zone 'UTC')
+       create_dt timestamp without time zone default (now() at time zone 'UTC'),
+    CONSTRAINT active_servers_mv_pk PRIMARY KEY (sort_order)
 );
 
 ALTER TABLE xonstat.active_servers_mv OWNER TO xonstat;