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:
parent
0789621b85
commit
ffb42c37df
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user