From: Ant Zucaro Date: Tue, 25 Oct 2011 10:40:54 +0000 (-0400) Subject: Add server hashkey table X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=74775c6dcfaa1ca3976404477b935b6725d6df13;p=xonotic%2Fxonstatdb.git Add server hashkey table --- diff --git a/tables/server_hashkeys.tab b/tables/server_hashkeys.tab new file mode 100644 index 0000000..f3d049c --- /dev/null +++ b/tables/server_hashkeys.tab @@ -0,0 +1,15 @@ +CREATE TABLE xonstat.server_hashkeys +( + server_id integer NOT NULL, + hashkey character varying(44) NOT NULL, + active_ind boolean NOT NULL DEFAULT true, + create_dt timestamp without time zone NOT NULL DEFAULT now(), + CONSTRAINT server_hashkeys_pk PRIMARY KEY (server_id, hashkey), + CONSTRAINT server_hashkeys_fk001 FOREIGN KEY (server_id) + REFERENCES xonstat.servers (server_id) MATCH SIMPLE + ON UPDATE NO ACTION ON DELETE NO ACTION +) +WITH ( + OIDS=FALSE +); +ALTER TABLE xonstat.server_hashkeys OWNER TO xonstat;