From 47930035a70fa371fb86d92c68a448231d72c512 Mon Sep 17 00:00:00 2001 From: Kukks Date: Wed, 19 Aug 2020 14:13:49 +0200 Subject: [PATCH 1/2] attempt mysql fix fixes #1836 --- .../20200625064111_refundnotificationpullpayments.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer.Data/Migrations/20200625064111_refundnotificationpullpayments.cs b/BTCPayServer.Data/Migrations/20200625064111_refundnotificationpullpayments.cs index 1a3f68f32..8f37d9029 100644 --- a/BTCPayServer.Data/Migrations/20200625064111_refundnotificationpullpayments.cs +++ b/BTCPayServer.Data/Migrations/20200625064111_refundnotificationpullpayments.cs @@ -70,10 +70,10 @@ namespace BTCPayServer.Migrations { Id = table.Column(maxLength: 30, nullable: false), Date = table.Column(nullable: false), - PullPaymentDataId = table.Column(nullable: true), + PullPaymentDataId = table.Column(maxLength: 30, nullable: true), State = table.Column(maxLength: 20, nullable: false), PaymentMethodId = table.Column(maxLength: 20, nullable: false), - Destination = table.Column(nullable: true), + Destination = table.Column(maxLength: 1000, nullable: true), Blob = table.Column(nullable: true), Proof = table.Column(nullable: true) }, From 811fd98a39faa3449ae0cb81e3ef6858ae4f89da Mon Sep 17 00:00:00 2001 From: Kukks Date: Fri, 28 Aug 2020 09:38:58 +0200 Subject: [PATCH 2/2] Add MaxLength and remove destination maxlength --- BTCPayServer.Data/Data/RefundData.cs | 1 + .../Migrations/20200625064111_refundnotificationpullpayments.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BTCPayServer.Data/Data/RefundData.cs b/BTCPayServer.Data/Data/RefundData.cs index da3754807..dafbe5bf9 100644 --- a/BTCPayServer.Data/Data/RefundData.cs +++ b/BTCPayServer.Data/Data/RefundData.cs @@ -8,6 +8,7 @@ namespace BTCPayServer.Data [Required] public string InvoiceDataId { get; set; } [Required] + [MaxLength(30)] public string PullPaymentDataId { get; set; } public PullPaymentData PullPaymentData { get; set; } public InvoiceData InvoiceData { get; set; } diff --git a/BTCPayServer.Data/Migrations/20200625064111_refundnotificationpullpayments.cs b/BTCPayServer.Data/Migrations/20200625064111_refundnotificationpullpayments.cs index 8f37d9029..565a9542d 100644 --- a/BTCPayServer.Data/Migrations/20200625064111_refundnotificationpullpayments.cs +++ b/BTCPayServer.Data/Migrations/20200625064111_refundnotificationpullpayments.cs @@ -73,7 +73,7 @@ namespace BTCPayServer.Migrations PullPaymentDataId = table.Column(maxLength: 30, nullable: true), State = table.Column(maxLength: 20, nullable: false), PaymentMethodId = table.Column(maxLength: 20, nullable: false), - Destination = table.Column(maxLength: 1000, nullable: true), + Destination = table.Column(nullable: true), Blob = table.Column(nullable: true), Proof = table.Column(nullable: true) },