1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-19 09:12:58 +08:00

Added database migration

This commit is contained in:
tgi74000 2017-08-09 10:54:03 +02:00
parent b00d1cd077
commit c0642ad6d3
3 changed files with 7 additions and 3 deletions

@ -1 +1 @@
Subproject commit 107c5517670ca88dbe8c83a97e37e99ac5742ee6
Subproject commit 9bad670471a03e299760315fd9d3fa9a726f6233

@ -1 +1 @@
Subproject commit 76656c51f281e7934159e9ed4414378fef24d130
Subproject commit f6042e1cb37cfad6c879d0e1245f7880c7fcd5f5

View File

@ -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;
}
}
}