]> git.rm.cloudns.org Git - xonotic/xonstatdb.git/commitdiff
Add player_medals table.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 29 Mar 2016 01:09:03 +0000 (21:09 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 29 Mar 2016 01:09:03 +0000 (21:09 -0400)
tables/player_medals.tab [new file with mode: 0755]

diff --git a/tables/player_medals.tab b/tables/player_medals.tab
new file mode 100755 (executable)
index 0000000..80440f5
--- /dev/null
@@ -0,0 +1,17 @@
+CREATE TABLE player_medals
+(
+  player_id integer NOT NULL,
+  place integer NOT NULL,
+  image character varying(50) NOT NULL,
+  alt character varying(50) NOT NULL,
+  create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
+  CONSTRAINT player_medals_pk PRIMARY KEY (player_id, image),
+  CONSTRAINT player_medals_fk01 FOREIGN KEY (player_id)
+      REFERENCES players (player_id) MATCH SIMPLE
+      ON UPDATE NO ACTION ON DELETE NO ACTION
+)
+WITH (
+  OIDS=FALSE
+);
+
+ALTER TABLE player_medals OWNER TO xonstat;