Add MaxLength and remove destination maxlength

This commit is contained in:
Kukks 2020-08-28 09:38:58 +02:00
parent 47930035a7
commit 811fd98a39
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

@ -73,7 +73,7 @@ namespace BTCPayServer.Migrations
PullPaymentDataId = table.Column<string>(maxLength: 30, 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>(maxLength: 1000, nullable: true), Destination = table.Column<string>(nullable: true),
Blob = table.Column<byte[]>(nullable: true), Blob = table.Column<byte[]>(nullable: true),
Proof = table.Column<byte[]>(nullable: true) Proof = table.Column<byte[]>(nullable: true)
}, },