Files
cheesy-arena-lite/db/migrations/20140524180123_CreateMatches.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

28 lines
535 B
SQL

-- +goose Up
CREATE TABLE matches (
id INTEGER PRIMARY KEY,
type VARCHAR(16),
displayname VARCHAR(16),
time DATETIME,
elimround int,
eliminstance int,
red1 int,
red1issurrogate bool,
red2 int,
red2issurrogate bool,
red3 int,
red3issurrogate bool,
blue1 int,
blue1issurrogate bool,
blue2 int,
blue2issurrogate bool,
blue3 int,
blue3issurrogate bool,
status VARCHAR(16),
startedat DATETIME
);
CREATE UNIQUE INDEX type_displayname ON matches(type, displayname);
-- +goose Down
DROP TABLE matches;