1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +08:00

Update migrations in line with hash change

This commit is contained in:
Dean Herbert 2018-11-30 17:42:40 +09:00
parent 66e43e6ed9
commit 00c5ea28c7
3 changed files with 13 additions and 6 deletions

View File

@ -9,7 +9,7 @@ using osu.Game.Database;
namespace osu.Game.Migrations
{
[DbContext(typeof(OsuDbContext))]
[Migration("20181130071705_AddScoreInfoTables")]
[Migration("20181130084152_AddScoreInfoTables")]
partial class AddScoreInfoTables
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -319,9 +319,9 @@ namespace osu.Game.Migrations
b.Property<bool>("DeletePending");
b.Property<double>("Health");
b.Property<string>("Hash");
b.Property<string>("MD5Hash");
b.Property<double>("Health");
b.Property<int>("MaxCombo");
@ -386,10 +386,17 @@ namespace osu.Game.Migrations
b.Property<bool>("DeletePending");
b.Property<string>("Hash");
b.Property<string>("Name");
b.HasKey("ID");
b.HasIndex("DeletePending");
b.HasIndex("Hash")
.IsUnique();
b.ToTable("SkinInfo");
});

View File

@ -27,7 +27,7 @@ namespace osu.Game.Migrations
OnlineScoreID = table.Column<long>(nullable: true),
Date = table.Column<DateTimeOffset>(nullable: false),
Statistics = table.Column<string>(nullable: true),
MD5Hash = table.Column<string>(nullable: true),
Hash = table.Column<string>(nullable: true),
DeletePending = table.Column<bool>(nullable: false)
},
constraints: table =>

View File

@ -317,9 +317,9 @@ namespace osu.Game.Migrations
b.Property<bool>("DeletePending");
b.Property<double>("Health");
b.Property<string>("Hash");
b.Property<string>("MD5Hash");
b.Property<double>("Health");
b.Property<int>("MaxCombo");