Files
cheesy-arena-lite/db/migrations/20140526180544_CreateMatchResults.sql
Patrick Fairbank abbca47a98 Updated data model for 2015 game.
Disabled some unit tests until logic is updated.
2015-01-19 19:04:51 -08:00

15 lines
309 B
SQL

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