mirror of https://github.com/ppy/osu
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:
parent
d48fae1100
commit
1a14ccc7ee
|
@ -133,6 +133,8 @@ private void beginMigration()
|
||||||
r.RemoveAll<ScoreInfo>();
|
r.RemoveAll<ScoreInfo>();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ef.Migrate();
|
||||||
|
|
||||||
migrateSettings(ef);
|
migrateSettings(ef);
|
||||||
migrateSkins(ef);
|
migrateSkins(ef);
|
||||||
migrateBeatmaps(ef);
|
migrateBeatmaps(ef);
|
||||||
|
|
Loading…
Reference in New Issue