From: Ant Zucaro Date: Tue, 29 Mar 2016 01:09:03 +0000 (-0400) Subject: Add player_medals table. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bc08a32e6561a19f6373a24f93ebda1df4b65a71;p=xonotic%2Fxonstatdb.git Add player_medals table. --- diff --git a/tables/player_medals.tab b/tables/player_medals.tab new file mode 100755 index 0000000..80440f5 --- /dev/null +++ b/tables/player_medals.tab @@ -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;