Files
cheesy-arena-lite/db/migrations/20140526180544_CreateMatchResults.sql
2014-05-31 03:54:46 -07:00

16 lines
327 B
SQL

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