Files
cheesy-arena-lite/db/migrations/20140526180544_CreateMatchResults.sql
2020-04-14 19:38:14 -05:00

14 lines
291 B
SQL

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