youmubot/youmubot-db-sql/migrations/20250220161301_make_last_beatmap_mode_nullable.sql
Natsu Kagami b302bd3ce1 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
2025-02-20 18:19:00 +01:00

6 lines
246 B
SQL

-- 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;