1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 11:07:19 +08:00

Move schema version to const

This commit is contained in:
Dean Herbert 2021-01-12 14:25:07 +09:00
parent 0789621b85
commit ffb42c37df

View File

@ -14,6 +14,8 @@ namespace osu.Game.Database
private const string database_name = @"client";
private const int schema_version = 5;
private ThreadLocal<Realm> threadContexts;
private readonly object writeLock = new object();
@ -148,8 +150,8 @@ namespace osu.Game.Database
contexts.Value++;
return Realm.GetInstance(new RealmConfiguration(storage.GetFullPath($"{database_name}.realm", true))
{
SchemaVersion = 5,
MigrationCallback = onMigration
SchemaVersion = schema_version,
MigrationCallback = onMigration,
});
}