Let's not rename columns yet

This commit is contained in:
smoogipoo
2017-10-14 14:28:25 +09:00
parent 674ad4a30c
commit b178be21d1
51 changed files with 351 additions and 362 deletions

View File

@ -1,4 +1,7 @@
// <auto-generated />
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@ -20,7 +23,7 @@ namespace osu.Game.Migrations
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapDifficulty", b =>
{
b.Property<int>("Id")
b.Property<int>("ID")
.ValueGeneratedOnAdd();
b.Property<float>("ApproachRate");
@ -35,26 +38,28 @@ namespace osu.Game.Migrations
b.Property<float>("SliderTickRate");
b.HasKey("Id");
b.HasKey("ID");
b.ToTable("BeatmapDifficulty");
});
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b =>
{
b.Property<int>("Id")
b.Property<int>("ID")
.ValueGeneratedOnAdd();
b.Property<int>("AudioLeadIn");
b.Property<int>("BaseDifficultyID");
b.Property<int>("BeatDivisor");
b.Property<int>("BeatmapDifficultyId");
b.Property<int>("BeatmapSetInfoId");
b.Property<int>("BeatmapSetInfoID");
b.Property<bool>("Countdown");
b.Property<int>("DifficultyID");
b.Property<double>("DistanceSpacing");
b.Property<int>("GridSize");
@ -67,11 +72,11 @@ namespace osu.Game.Migrations
b.Property<string>("MD5Hash");
b.Property<int?>("MetadataId");
b.Property<int?>("MetadataID");
b.Property<string>("Path");
b.Property<int>("RulesetInfoId");
b.Property<int>("RulesetID");
b.Property<bool>("SpecialStyle");
@ -87,24 +92,24 @@ namespace osu.Game.Migrations
b.Property<bool>("WidescreenStoryboard");
b.HasKey("Id");
b.HasKey("ID");
b.HasIndex("BeatmapDifficultyId");
b.HasIndex("BeatmapSetInfoID");
b.HasIndex("BeatmapSetInfoId");
b.HasIndex("DifficultyID");
b.HasIndex("MD5Hash");
b.HasIndex("MetadataId");
b.HasIndex("MetadataID");
b.HasIndex("RulesetInfoId");
b.HasIndex("RulesetID");
b.ToTable("BeatmapInfo");
});
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapMetadata", b =>
{
b.Property<int>("Id")
b.Property<int>("ID")
.ValueGeneratedOnAdd();
b.Property<string>("Artist");
@ -117,8 +122,6 @@ namespace osu.Game.Migrations
b.Property<string>("BackgroundFile");
b.Property<int>("BeatmapSetInfoId");
b.Property<int>("PreviewTime");
b.Property<string>("Source");
@ -129,56 +132,57 @@ namespace osu.Game.Migrations
b.Property<string>("TitleUnicode");
b.HasKey("Id");
b.HasIndex("BeatmapSetInfoId")
.IsUnique();
b.HasKey("ID");
b.ToTable("BeatmapMetadata");
});
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetFileInfo", b =>
{
b.Property<int>("Id")
b.Property<int>("ID")
.ValueGeneratedOnAdd();
b.Property<int>("BeatmapSetInfoId");
b.Property<int>("BeatmapSetInfoID");
b.Property<int>("FileInfoId");
b.Property<int>("FileInfoID");
b.Property<string>("Filename")
.IsRequired();
b.HasKey("Id");
b.HasKey("ID");
b.HasIndex("BeatmapSetInfoId");
b.HasIndex("BeatmapSetInfoID");
b.HasIndex("FileInfoId");
b.HasIndex("FileInfoID");
b.ToTable("BeatmapSetFileInfo");
});
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetInfo", b =>
{
b.Property<int>("Id")
b.Property<int>("ID")
.ValueGeneratedOnAdd();
b.Property<bool>("DeletePending");
b.Property<string>("Hash");
b.Property<int?>("MetadataID");
b.Property<bool>("Protected");
b.HasKey("Id");
b.HasKey("ID");
b.HasIndex("DeletePending");
b.HasIndex("MetadataID");
b.ToTable("BeatmapSetInfo");
});
modelBuilder.Entity("osu.Game.Input.Bindings.DatabasedKeyBinding", b =>
{
b.Property<int>("Id")
b.Property<int>("ID")
.ValueGeneratedOnAdd();
b.Property<int>("IntAction")
@ -187,11 +191,11 @@ namespace osu.Game.Migrations
b.Property<string>("KeysString")
.HasColumnName("Keys");
b.Property<int?>("RulesetInfoId");
b.Property<int?>("RulesetID");
b.Property<int?>("Variant");
b.HasKey("Id");
b.HasKey("ID");
b.HasIndex("IntAction");
@ -202,14 +206,14 @@ namespace osu.Game.Migrations
modelBuilder.Entity("osu.Game.IO.FileInfo", b =>
{
b.Property<int>("Id")
b.Property<int>("ID")
.ValueGeneratedOnAdd();
b.Property<string>("Hash");
b.Property<int>("ReferenceCount");
b.HasKey("Id");
b.HasKey("ID");
b.HasIndex("Hash")
.IsUnique();
@ -221,7 +225,7 @@ namespace osu.Game.Migrations
modelBuilder.Entity("osu.Game.Rulesets.RulesetInfo", b =>
{
b.Property<int?>("Id")
b.Property<int?>("ID")
.ValueGeneratedOnAdd();
b.Property<bool>("Available");
@ -230,7 +234,7 @@ namespace osu.Game.Migrations
b.Property<string>("Name");
b.HasKey("Id");
b.HasKey("ID");
b.HasIndex("Available");
@ -245,31 +249,23 @@ namespace osu.Game.Migrations
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b =>
{
b.HasOne("osu.Game.Beatmaps.BeatmapDifficulty", "Difficulty")
.WithMany()
.HasForeignKey("BeatmapDifficultyId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo", "BeatmapSet")
.WithMany("Beatmaps")
.HasForeignKey("BeatmapSetInfoId")
.HasForeignKey("BeatmapSetInfoID")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("osu.Game.Beatmaps.BeatmapDifficulty", "Difficulty")
.WithMany()
.HasForeignKey("DifficultyID")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("osu.Game.Beatmaps.BeatmapMetadata", "Metadata")
.WithMany()
.HasForeignKey("MetadataId");
.HasForeignKey("MetadataID");
b.HasOne("osu.Game.Rulesets.RulesetInfo", "Ruleset")
.WithMany()
.HasForeignKey("RulesetInfoId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapMetadata", b =>
{
b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo")
.WithOne("Metadata")
.HasForeignKey("osu.Game.Beatmaps.BeatmapMetadata", "BeatmapSetInfoId")
.HasForeignKey("RulesetID")
.OnDelete(DeleteBehavior.Cascade);
});
@ -277,14 +273,21 @@ namespace osu.Game.Migrations
{
b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo")
.WithMany("Files")
.HasForeignKey("BeatmapSetInfoId")
.HasForeignKey("BeatmapSetInfoID")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("osu.Game.IO.FileInfo", "FileInfo")
.WithMany()
.HasForeignKey("FileInfoId")
.HasForeignKey("FileInfoID")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetInfo", b =>
{
b.HasOne("osu.Game.Beatmaps.BeatmapMetadata", "Metadata")
.WithMany()
.HasForeignKey("MetadataID");
});
#pragma warning restore 612, 618
}
}