sendou.ink/migrations/024-adjust-tournament.js
Kalle 5e36b76ee8
TO Tools back (#1349)
* Remove friend code

* Revive TO Tools admin page

* Revive TO Tools maps page

* Initial one mode only map list

* Add modesIncluded arg

* Handle no maps picked for SZ only generation

* Tiebreaker is always from the maps of the teams

* Make modesIncluded necessary arg

* Tiebreaker is from neither team's pool if no overlap

* Handles worst case duplication

* Handles one team submitted no maps test

* Fix crash

* Seed

* Can change one mode tournament map pool

* Fix join page link

* Remove useless TODO

* Fixes related to mapListGeneratorAvailable

* Fix map list generation considering impossible map lists making it take forever

* Show unlisted select for both sides

* Add info texts

* Remove register button

* Add todos

* Finished version for ITZ

* Times

* Remove TODOs

* 23->24
2023-04-22 11:44:20 +03:00

13 lines
334 B
JavaScript

module.exports.up = function (db) {
db.prepare(
/* sql */ `alter table "CalendarEvent" add "isBeforeStart" integer default 1`
).run();
db.prepare(
/* sql */ `alter table "CalendarEvent" add "toToolsMode" text`
).run();
db.prepare(
/* sql */ `alter table "TournamentTeam" drop column "friendCode"`
).run();
};