93aec2f368
- Drop wireTransferGatewayNames from ShopSettings (new migration). - Replace string-matching with a GraphQL query against Order.transactions[].manualPaymentGateway, the first-class flag Shopify exposes for any merchant-defined manual payment method. - Both webhook handlers now fetch the order on the fly to classify it, removing the configurable gateway-names field from settings.
5 lines
277 B
SQL
5 lines
277 B
SQL
-- Drop the column added by the previous migration; we now classify
|
|
-- wire-transfer orders by querying OrderTransaction.manualPaymentGateway
|
|
-- via the GraphQL Admin API instead of by configurable name match.
|
|
ALTER TABLE "ShopSettings" DROP COLUMN "wireTransferGatewayNames";
|