add migration

This commit is contained in:
Kukks
2020-10-07 11:08:11 +02:00
parent 2147f8ec8b
commit 9ff93ac2d5
2 changed files with 51 additions and 2 deletions

View File

@@ -525,7 +525,8 @@ namespace BTCPayServer.Migrations
.HasColumnType("TEXT");
b.Property<string>("PullPaymentDataId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.HasMaxLength(30);
b.HasKey("InvoiceDataId", "PullPaymentDataId");
@@ -960,7 +961,8 @@ namespace BTCPayServer.Migrations
{
b.HasOne("BTCPayServer.Data.ApplicationUser", "ApplicationUser")
.WithMany("U2FDevices")
.HasForeignKey("ApplicationUserId");
.HasForeignKey("ApplicationUserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>