mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Implemented elimination round handling.
This commit is contained in:
@@ -4,6 +4,9 @@ CREATE TABLE matches (
|
||||
type VARCHAR(16),
|
||||
displayname VARCHAR(16),
|
||||
time DATETIME,
|
||||
elimround int,
|
||||
elimgroup int,
|
||||
eliminstance int,
|
||||
red1 int,
|
||||
red1issurrogate bool,
|
||||
red2 int,
|
||||
@@ -17,8 +20,10 @@ CREATE TABLE matches (
|
||||
blue3 int,
|
||||
blue3issurrogate bool,
|
||||
status VARCHAR(16),
|
||||
startedat DATETIME
|
||||
startedat DATETIME,
|
||||
winner VARCHAR(16)
|
||||
);
|
||||
CREATE UNIQUE INDEX type_displayname ON matches(type, displayname);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE matches;
|
||||
|
||||
@@ -6,7 +6,6 @@ CREATE TABLE alliance_teams (
|
||||
teamid int
|
||||
);
|
||||
CREATE UNIQUE INDEX alliance_position ON alliance_teams(allianceid, pickposition);
|
||||
CREATE UNIQUE INDEX team ON alliance_teams(teamid);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE alliance_teams;
|
||||
|
||||
Reference in New Issue
Block a user