feat: 新增数据库迁移,为 tb_agent_recharge_record 添加 payment_voucher_key 列

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-17 18:28:38 +08:00
parent 1033d7666b
commit b538e45bd9
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE tb_agent_recharge_record
DROP COLUMN IF EXISTS payment_voucher_key;

View File

@@ -0,0 +1,6 @@
-- 为 tb_agent_recharge_record 表添加支付凭证字段
-- 允许 NULL兼容历史数据新接口在 Service 层对 offline 支付方式强制非空校验
ALTER TABLE tb_agent_recharge_record
ADD COLUMN IF NOT EXISTS payment_voucher_key VARCHAR(500);
COMMENT ON COLUMN tb_agent_recharge_record.payment_voucher_key IS '支付凭证对象存储Key线下支付时必填微信支付时为空';