Merge pull request #1856 from Kukks/mysql-fix

attempt mysql fix
This commit is contained in:
Nicolas Dorier 2020-08-28 20:19:18 +09:00 committed by GitHub
commit 4055498921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@ namespace BTCPayServer.Data
[Required] [Required]
public string InvoiceDataId { get; set; } public string InvoiceDataId { get; set; }
[Required] [Required]
[MaxLength(30)]
public string PullPaymentDataId { get; set; } public string PullPaymentDataId { get; set; }
public PullPaymentData PullPaymentData { get; set; } public PullPaymentData PullPaymentData { get; set; }
public InvoiceData InvoiceData { get; set; } public InvoiceData InvoiceData { get; set; }

View file

@ -70,7 +70,7 @@ namespace BTCPayServer.Migrations
{ {
Id = table.Column<string>(maxLength: 30, nullable: false), Id = table.Column<string>(maxLength: 30, nullable: false),
Date = table.Column<DateTimeOffset>(nullable: false), Date = table.Column<DateTimeOffset>(nullable: false),
PullPaymentDataId = table.Column<string>(nullable: true), PullPaymentDataId = table.Column<string>(maxLength: 30, nullable: true),
State = table.Column<string>(maxLength: 20, nullable: false), State = table.Column<string>(maxLength: 20, nullable: false),
PaymentMethodId = table.Column<string>(maxLength: 20, nullable: false), PaymentMethodId = table.Column<string>(maxLength: 20, nullable: false),
Destination = table.Column<string>(nullable: true), Destination = table.Column<string>(nullable: true),