Make tournament ruleset configurable #70
Labels
database
Database schema related issues
priority: low
size: lg
trpc
tRPC related issues
ui
UI & design (frontend) related issues
Database
ruleset
field on theTournament
table that is not null and type of the previously created enum. In the Typescript schema, the field doesn't have a default value, but for the migration to execute without errors we'll makeruleset
nullable, then updateTournament.ruleset
and set it tostandard
and then make the column non-nullable.reulsetConfig
field on theTournament
table that is not null and type ofjsonb
. The default will be an empty object, and (at least for now) the type should includekeys
when rulset is mania and that can be a number between 4 and 7.tRPC
createTournament
andupdateTournament
to include the ruleset field and its config (add it tomutationSchemas
).updateTournament
, the ruleset and its config can only be changed by the host and if the tournament isn't public yet.Tournament settings page
<Select />
field so the user can change the ruleset.The text was updated successfully, but these errors were encountered: