chore: add legacy SMS provider cleanup helper

This commit is contained in:
Codex
2026-07-04 00:43:59 +08:00
parent ca482f7feb
commit 0efdb0660c
5 changed files with 203 additions and 1 deletions

View File

@@ -188,6 +188,17 @@ set +a
PNVS_TENANT_ID=00000000-0000-0000-0000-000000000001 npm run diagnose:aliyun-pnvs
```
如果 `readiness:production:db``legacy_sms_provider`,先 dry-run 查看仍处于 `active/testing` 的传统短信 provider再确认停用。这个脚本只会处理 `aliyun``aliyun-sms``tencent``tencent-sms` 等旧短信 auth provider不会改 PNVS 行:
```bash
cd /opt/tiku-saas/repo
set -a
source /etc/tiku-saas/api.env
set +a
PNVS_TENANT_ID=00000000-0000-0000-0000-000000000001 npm run disable:legacy-sms-providers
PNVS_TENANT_ID=00000000-0000-0000-0000-000000000001 npm run disable:legacy-sms-providers -- --apply
```
接管服务器时先做只读检查:
```bash