feat(server): 迁移 000021 pay_purchases 台账 + subscriptions.source 扩 pay

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u
This commit is contained in:
wangjia
2026-07-10 20:46:13 +08:00
parent 3df5867c02
commit 85140edf1c
6 changed files with 84 additions and 2 deletions
@@ -0,0 +1,3 @@
DROP TABLE IF EXISTS pay_purchases;
-- 注意:若已存在 source='pay' 的行,该 MODIFY 会失败——down 前需人工清理(标准 enum 收窄语义)。
ALTER TABLE subscriptions MODIFY source ENUM('trial','code') NOT NULL;