]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - tables/players.tab
Use UTC timestamps instead of local timestamps.
[xonotic/xonstatdb.git] / tables / players.tab
index 5f2e685c79453a7e8de211284ad4911c35428d37..b75a53adfb89420361d1a32a1f94414a2c2d7c83 100644 (file)
@@ -1,9 +1,10 @@
 CREATE TABLE xonstat.players
 (
   player_id serial NOT NULL,
-  nick character varying(64),
+  nick character varying(128),
+  stripped_nick character varying(128),
   "location" character varying(100),
-  create_dt timestamp with time zone NOT NULL DEFAULT now(),
+  create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
   CONSTRAINT players_pk PRIMARY KEY (player_id)
 )
 WITH (