Re-migrate

This commit is contained in:
Dean Herbert 2018-11-30 16:35:57 +09:00
parent 3727955911
commit 58293c3eae
3 changed files with 18 additions and 12 deletions

View File

@ -9,7 +9,7 @@ using osu.Game.Database;
namespace osu.Game.Migrations namespace osu.Game.Migrations
{ {
[DbContext(typeof(OsuDbContext))] [DbContext(typeof(OsuDbContext))]
[Migration("20181130052804_AddScoreInfoTables")] [Migration("20181130071705_AddScoreInfoTables")]
partial class AddScoreInfoTables partial class AddScoreInfoTables
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -325,7 +325,8 @@ namespace osu.Game.Migrations
b.Property<int>("MaxCombo"); b.Property<int>("MaxCombo");
b.Property<string>("ModsString"); b.Property<string>("ModsJson")
.HasColumnName("Mods");
b.Property<long?>("OnlineScoreID"); b.Property<long?>("OnlineScoreID");
@ -335,11 +336,13 @@ namespace osu.Game.Migrations
b.Property<int>("RulesetID"); b.Property<int>("RulesetID");
b.Property<string>("StatisticsString"); b.Property<string>("StatisticsJson")
.HasColumnName("Statistics");
b.Property<double>("TotalScore"); b.Property<double>("TotalScore");
b.Property<string>("UserString"); b.Property<string>("UserString")
.HasColumnName("User");
b.HasKey("ID"); b.HasKey("ID");
@ -446,7 +449,7 @@ namespace osu.Game.Migrations
modelBuilder.Entity("osu.Game.Scoring.ScoreInfo", b => modelBuilder.Entity("osu.Game.Scoring.ScoreInfo", b =>
{ {
b.HasOne("osu.Game.Beatmaps.BeatmapInfo", "BeatmapInfo") b.HasOne("osu.Game.Beatmaps.BeatmapInfo", "Beatmap")
.WithMany() .WithMany()
.HasForeignKey("BeatmapInfoID") .HasForeignKey("BeatmapInfoID")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);

View File

@ -21,12 +21,12 @@ namespace osu.Game.Migrations
MaxCombo = table.Column<int>(nullable: false), MaxCombo = table.Column<int>(nullable: false),
Combo = table.Column<int>(nullable: false), Combo = table.Column<int>(nullable: false),
RulesetID = table.Column<int>(nullable: false), RulesetID = table.Column<int>(nullable: false),
ModsString = table.Column<string>(nullable: true), Mods = table.Column<string>(nullable: true),
UserString = table.Column<string>(nullable: true), User = table.Column<string>(nullable: true),
BeatmapInfoID = table.Column<int>(nullable: false), BeatmapInfoID = table.Column<int>(nullable: false),
OnlineScoreID = table.Column<long>(nullable: true), OnlineScoreID = table.Column<long>(nullable: true),
Date = table.Column<DateTimeOffset>(nullable: false), Date = table.Column<DateTimeOffset>(nullable: false),
StatisticsString = table.Column<string>(nullable: true), Statistics = table.Column<string>(nullable: true),
MD5Hash = table.Column<string>(nullable: true), MD5Hash = table.Column<string>(nullable: true),
DeletePending = table.Column<bool>(nullable: false) DeletePending = table.Column<bool>(nullable: false)
}, },

View File

@ -323,7 +323,8 @@ namespace osu.Game.Migrations
b.Property<int>("MaxCombo"); b.Property<int>("MaxCombo");
b.Property<string>("ModsString"); b.Property<string>("ModsJson")
.HasColumnName("Mods");
b.Property<long?>("OnlineScoreID"); b.Property<long?>("OnlineScoreID");
@ -333,11 +334,13 @@ namespace osu.Game.Migrations
b.Property<int>("RulesetID"); b.Property<int>("RulesetID");
b.Property<string>("StatisticsString"); b.Property<string>("StatisticsJson")
.HasColumnName("Statistics");
b.Property<double>("TotalScore"); b.Property<double>("TotalScore");
b.Property<string>("UserString"); b.Property<string>("UserString")
.HasColumnName("User");
b.HasKey("ID"); b.HasKey("ID");
@ -444,7 +447,7 @@ namespace osu.Game.Migrations
modelBuilder.Entity("osu.Game.Scoring.ScoreInfo", b => modelBuilder.Entity("osu.Game.Scoring.ScoreInfo", b =>
{ {
b.HasOne("osu.Game.Beatmaps.BeatmapInfo", "BeatmapInfo") b.HasOne("osu.Game.Beatmaps.BeatmapInfo", "Beatmap")
.WithMany() .WithMany()
.HasForeignKey("BeatmapInfoID") .HasForeignKey("BeatmapInfoID")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);