From c0642ad6d3b438761412e28649fa5437ea8d2bb5 Mon Sep 17 00:00:00 2001 From: tgi74000 Date: Wed, 9 Aug 2017 10:54:03 +0200 Subject: [PATCH] Added database migration --- osu-framework | 2 +- osu-resources | 2 +- osu.Game/Beatmaps/BeatmapStore.cs | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/osu-framework b/osu-framework index 107c551767..9bad670471 160000 --- a/osu-framework +++ b/osu-framework @@ -1 +1 @@ -Subproject commit 107c5517670ca88dbe8c83a97e37e99ac5742ee6 +Subproject commit 9bad670471a03e299760315fd9d3fa9a726f6233 diff --git a/osu-resources b/osu-resources index 76656c51f2..f6042e1cb3 160000 --- a/osu-resources +++ b/osu-resources @@ -1 +1 @@ -Subproject commit 76656c51f281e7934159e9ed4414378fef24d130 +Subproject commit f6042e1cb37cfad6c879d0e1245f7880c7fcd5f5 diff --git a/osu.Game/Beatmaps/BeatmapStore.cs b/osu.Game/Beatmaps/BeatmapStore.cs index 2ec9a7d759..d717a46a24 100644 --- a/osu.Game/Beatmaps/BeatmapStore.cs +++ b/osu.Game/Beatmaps/BeatmapStore.cs @@ -20,7 +20,7 @@ namespace osu.Game.Beatmaps /// The current version of this store. Used for migrations (see ). /// The initial version is 1. /// - 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; } } }