Files
cheesy-arena-lite/db/migrations/20140526180544_CreateMatchResults.sql
2014-08-20 03:07:34 -07:00

17 lines
352 B
SQL

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