1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Run EF migrations before migrating to realm

Turns out that there are more than zero users that are upgrading from
old databases. I think we probably want to support this for now.

Tested against database in https://github.com/ppy/osu/discussions/16700
and one other I had locally, both work correctly.
This commit is contained in:
Dean Herbert 2022-01-29 22:42:34 +09:00
parent d48fae1100
commit 1a14ccc7ee

View File

@ -133,6 +133,8 @@ namespace osu.Game.Database
r.RemoveAll<ScoreInfo>();
});
ef.Migrate();
migrateSettings(ef);
migrateSkins(ef);
migrateBeatmaps(ef);