mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 09:20:02 +09:00
Added database migration
This commit is contained in:
@ -20,7 +20,7 @@ namespace osu.Game.Beatmaps
|
||||
/// The current version of this store. Used for migrations (see <see cref="PerformMigration(int, int)"/>).
|
||||
/// The initial version is 1.
|
||||
/// </summary>
|
||||
protected override int StoreVersion => 2;
|
||||
protected override int StoreVersion => 3;
|
||||
|
||||
public BeatmapStore(SQLiteConnection connection)
|
||||
: base(connection)
|
||||
@ -77,6 +77,10 @@ namespace osu.Game.Beatmaps
|
||||
// cannot migrate; breaking underlying changes.
|
||||
Reset();
|
||||
break;
|
||||
case 3:
|
||||
// Added MD5Hash column to BeatmapInfo
|
||||
Connection.CreateCommand("ALTER TABLE BeatmapInfo ADD COLUMN MD5Hash varchar").ExecuteNonQuery();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user