From 587d3aa612eb9d7c14a66da1cbd30310a4995f4b Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 24 Sep 2024 09:52:28 +0900 Subject: [PATCH] Fix query --- BTCPayServer.Data/Migrations/20240906010127_renamecol.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BTCPayServer.Data/Migrations/20240906010127_renamecol.cs b/BTCPayServer.Data/Migrations/20240906010127_renamecol.cs index 0394f1bb1..928b24310 100644 --- a/BTCPayServer.Data/Migrations/20240906010127_renamecol.cs +++ b/BTCPayServer.Data/Migrations/20240906010127_renamecol.cs @@ -30,10 +30,10 @@ namespace BTCPayServer.Migrations migrationBuilder.Sql(""" UPDATE "PayoutProcessors" SET - "PaymentMethodId" = CASE WHEN STRPOS("PaymentMethodId", '_') = 0 THEN "PaymentMethodId" || '-CHAIN' - CASE WHEN STRPOS("PaymentMethodId", '_LightningLike') = 0 THEN "PaymentMethodId" || '-LN' - CASE WHEN STRPOS("PaymentMethodId", '_LNURLPAY') = 0 THEN "PaymentMethodId" || '-LN' - ELSE "PaymentMethodId" END; + "PayoutMethodId" = CASE WHEN STRPOS("PayoutMethodId", '_') = 0 THEN "PayoutMethodId" || '-CHAIN' + WHEN STRPOS("PayoutMethodId", '_LightningLike') = 0 THEN "PayoutMethodId" || '-LN' + WHEN STRPOS("PayoutMethodId", '_LNURLPAY') = 0 THEN "PayoutMethodId" || '-LN' + ELSE "PayoutMethodId" END; """); }