[ongeki] Fix platinum score saving

pull/1/head
Dom Eori 2022-05-08 23:21:40 +09:00
parent a895f6943b
commit a5fc2ed418
4 changed files with 9 additions and 1 deletions

View File

@ -45,6 +45,8 @@ public class UserMusicDetail implements Serializable {
private int battleScoreRank;
private int platinumScoreMax;
private int maxComboCount;
private int maxOverKill;

View File

@ -0,0 +1,3 @@
-- ongeki_user_music_detail
ALTER TABLE ongeki_user_music_detail ADD COLUMN platinum_score_max INTEGER;
UPDATE ongeki_user_music_detail SET platinum_score_max=0;

View File

@ -0,0 +1,3 @@
-- ongeki_user_music_detail
ALTER TABLE ongeki_user_music_detail ADD COLUMN platinum_score_max INTEGER;
UPDATE ongeki_user_music_detail SET platinum_score_max=0;

View File

@ -386,7 +386,7 @@ class OngekiRepositoryTest {
}
private UserMusicDetail getMusicDetail(UserData u, Integer musicId) {
return new UserMusicDetail(-1, u, musicId, 1, 1, 100, 1, 100, 1, 100, 100, 100, true, true, true, false, 1, true);
return new UserMusicDetail(-1, u, musicId, 1, 1, 100, 1, 100, 1, 100, 100, 100, 0, true, true, true, false, 1, true);
}
private UserMusicItem getMusicItem(UserData u, Integer musicId) {