]> de.git.xonotic.org Git - xonotic/xonstatdb.git/commitdiff
Add server hashkey table
authorAnt Zucaro <azucaro@gmail.com>
Tue, 25 Oct 2011 10:40:54 +0000 (06:40 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 25 Oct 2011 10:40:54 +0000 (06:40 -0400)
tables/server_hashkeys.tab [new file with mode: 0644]

diff --git a/tables/server_hashkeys.tab b/tables/server_hashkeys.tab
new file mode 100644 (file)
index 0000000..f3d049c
--- /dev/null
@@ -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;