Files
junhong_cmp_fiber/migrations/000198_add_payment_merchant_identity.up.sql
break cbf909b878
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m6s
代理在线充值
2026-07-27 16:02:55 +08:00

9 lines
411 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
ALTER TABLE tb_payment
ADD COLUMN merchant_identity varchar(100);
CREATE INDEX idx_payment_merchant_reconciliation
ON tb_payment (payment_method, merchant_identity, paid_at, id)
WHERE deleted_at IS NULL AND merchant_identity IS NOT NULL AND merchant_identity <> '';
COMMENT ON COLUMN tb_payment.merchant_identity IS '创建支付单时的收款身份快照微信商户号或支付宝应用ID';