Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update score table structure #10887

Merged
merged 18 commits into from
Jan 29, 2024
Merged

Update score table structure #10887

merged 18 commits into from
Jan 29, 2024

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Jan 24, 2024

Reopening #10869 because I pushed wrong branch to master 🕺

This uses raw sql for migration due to laravel not supporting float until laravel 11. Also the syntax just not being very helpful in the first place (if anything the migration result has been occasionally changed between laravel versions).

Indexer image points to my own published image because the changes need ppy/osu-elastic-indexer#154 to be properly tested.

I considered making everything flat - as in handling maximum_statistics, statistics, and mods directly from Score model - but it'd involve even more changes dealing with partial ScoreData assignment so maybe later if at all.

  • depends on Convert ScoreRank to enum #10867 (although not sure if that much meaningful being a rather small change by itself)
  • migration entry 2024_01_12_115738_update_scores_table_final

nanaya added 13 commits January 16, 2024 15:10
- a bunch of attributes are moved out of the json
- pp and legacy id moved to main scores table
It expects database row structure so just give it database row structure.
Add new score attributes to legacy model.
(again, as the previous one was overwritten by another commit)
@nanaya nanaya enabled auto-merge January 29, 2024 08:14
@nanaya
Copy link
Collaborator Author

nanaya commented Jan 29, 2024

(already approved in original pr and no change since)

@nanaya nanaya merged commit 98ffa4d into ppy:master Jan 29, 2024
3 checks passed
@nanaya nanaya deleted the score-structure-v44 branch July 26, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants