]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - tables/summary_stats.tab
Add primary key to summary stats. SQLAlchemy requires it.
[xonotic/xonstatdb.git] / tables / summary_stats.tab
index 8e20da9500c1817dc29218f2271dfcd625602571..46c25a54e9be736b3cde3146a29576ef230daf46 100755 (executable)
@@ -1,12 +1,14 @@
 CREATE TABLE xonstat.summary_stats
 (
+  summary_stats_id bigserial NOT NULL,
   total_players bigint NOT NULL,
   total_servers bigint NOT NULL,
   total_games bigint NOT NULL,
   total_dm_games bigint NOT NULL,
   total_duel_games bigint NOT NULL,
   total_ctf_games bigint NOT NULL,
-  create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC')
+  create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
+  CONSTRAINT summary_stats_pk PRIMARY KEY (summary_stats_id)
 )
 WITH (
   OIDS=FALSE