fixes the db migration

This commit is contained in:
Paul Schneider 2018-08-05 06:04:10 +02:00
commit 72e124d1a1
11 changed files with 100 additions and 71 deletions

View file

@ -678,6 +678,8 @@ namespace Yavsc.Migrations
b.Property<DateTime>("DateModified");
b.Property<string>("Description");
b.Property<DateTime?>("EventDate");
b.Property<long?>("LocationId");
@ -725,6 +727,8 @@ namespace Yavsc.Migrations
b.Property<DateTime>("DateModified");
b.Property<string>("Description");
b.Property<DateTime>("EventDate");
b.Property<long?>("LocationId");
@ -1266,6 +1270,8 @@ namespace Yavsc.Migrations
b.Property<DateTime>("DateModified");
b.Property<string>("Description");
b.Property<DateTime>("EventDate");
b.Property<long?>("LocationId");
@ -1354,6 +1360,8 @@ namespace Yavsc.Migrations
b.Property<string>("Description");
b.Property<long>("GitId");
b.Property<string>("Name")
.IsRequired();
@ -1398,7 +1406,8 @@ namespace Yavsc.Migrations
modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b =>
{
b.Property<string>("Path");
b.Property<long>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Branch")
.HasAnnotation("MaxLength", 512);
@ -1406,10 +1415,13 @@ namespace Yavsc.Migrations
b.Property<string>("OwnerId")
.HasAnnotation("MaxLength", 1024);
b.Property<string>("Path")
.IsRequired();
b.Property<string>("Url")
.HasAnnotation("MaxLength", 2048);
b.HasKey("Path");
b.HasKey("Id");
});
modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim<string>", b =>
@ -1880,7 +1892,7 @@ namespace Yavsc.Migrations
b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference")
.WithMany()
.HasForeignKey("Name");
.HasForeignKey("GitId");
b.HasOne("Yavsc.Models.Payment.PayPalPayment")
.WithMany()