Files
cheesy-arena-lite/db/migrations/20140526180544_CreateMatchResults.sql

16 lines
334 B
MySQL
Raw Normal View History

2014-05-26 20:16:36 -07:00
-- +goose Up
CREATE TABLE match_results (
id INTEGER PRIMARY KEY,
matchid int,
playnumber int,
matchtype VARCHAR(16),
2014-05-26 20:16:36 -07:00
redscorejson text,
bluescorejson text,
2014-08-20 03:07:34 -07:00
redcardsjson text,
bluecardsjson text
2014-05-26 20:16:36 -07:00
);
2014-05-31 03:54:46 -07:00
CREATE UNIQUE INDEX matchid_playnumber ON match_results(matchid, playnumber);
2014-05-26 20:16:36 -07:00
-- +goose Down
DROP TABLE match_results;