Files
cheesy-arena-lite/db/migrations/20140526180544_CreateMatchResults.sql
2016-07-31 14:18:38 -07:00

16 lines
334 B
SQL

-- +goose Up
CREATE TABLE match_results (
id INTEGER PRIMARY KEY,
matchid int,
playnumber int,
matchtype VARCHAR(16),
redscorejson text,
bluescorejson text,
redcardsjson text,
bluecardsjson text
);
CREATE UNIQUE INDEX matchid_playnumber ON match_results(matchid, playnumber);
-- +goose Down
DROP TABLE match_results;