Files
esports/scripts/migrations/0005-openskill.sql

7 lines
408 B
SQL

-- OpenSkill ratings: elo becomes mu, and sigma holds the uncertainty.
-- Existing rows keep sigma NULL; the app estimates it from games played.
ALTER TABLE player_rating ADD COLUMN IF NOT EXISTS sigma real;
ALTER TABLE team_rating ADD COLUMN IF NOT EXISTS sigma real;
ALTER TABLE rating_change ADD COLUMN IF NOT EXISTS sigma_before real;
ALTER TABLE rating_change ADD COLUMN IF NOT EXISTS sigma_after real;