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; """); }