]> git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - tables/active_maps_mv.sql
Give the active MVs primary keys.
[xonotic/xonstatdb.git] / tables / active_maps_mv.sql
index f7afdae9c1d82ae0dd26bf42b421e9016f45e7e9..aeaccbc2edd9336138d5f52c0ff8a5a83ee47f57 100755 (executable)
@@ -3,7 +3,8 @@ create table active_maps_mv(
        map_id bigint,
        map_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_maps_mv_pk PRIMARY KEY (sort_order)
 );
 
 ALTER TABLE xonstat.active_maps_mv OWNER TO xonstat;