mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
osu: [Big!] rework load_beatmap so that it can retrieve beatmapsets
Also - scoreboard can handle beatmapsets now - "when" column is included - beatmapWithMode's mode field is now optional
This commit is contained in:
parent
08e80fb816
commit
4a2f81c3d3
13 changed files with 564 additions and 378 deletions
|
@ -0,0 +1,6 @@
|
|||
-- Add migration script here
|
||||
|
||||
ALTER TABLE osu_last_beatmaps RENAME COLUMN mode TO mode_old;
|
||||
ALTER TABLE osu_last_beatmaps ADD COLUMN mode INT NULL;
|
||||
UPDATE osu_last_beatmaps SET mode = mode_old;
|
||||
ALTER TABLE osu_last_beatmaps DROP COLUMN mode_old;
|
|
@ -3,7 +3,7 @@ use crate::models::*;
|
|||
pub struct LastBeatmap {
|
||||
pub channel_id: i64,
|
||||
pub beatmap: Vec<u8>,
|
||||
pub mode: u8,
|
||||
pub mode: Option<u8>,
|
||||
}
|
||||
|
||||
impl LastBeatmap {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue