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
1 changed files with 2 additions and 0 deletions

View File

@ -133,6 +133,8 @@ private void beginMigration()
r.RemoveAll<ScoreInfo>();
});
ef.Migrate();
migrateSettings(ef);
migrateSkins(ef);
migrateBeatmaps(ef);