From 945fc83c60734e8299104b16d4b401cd246f68e6 Mon Sep 17 00:00:00 2001 From: wangbo Date: Wed, 29 Jul 2026 02:11:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20=E4=BF=AE=E6=AD=A3=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=BF=AB=E7=85=A7=E7=9B=AE=E5=BD=95=E8=A1=A8=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 切换前验收快照误用了不存在的 gateway_providers,导致在数据库导出前触发安全回滚。改为实际的 model_catalog_providers。\n\n验证:完整快照 SQL 已对线上旧库只读执行,版本、扩展、表、序列和关键计数均成功生成。 --- scripts/cluster/migrate-production.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cluster/migrate-production.sh b/scripts/cluster/migrate-production.sh index 68372cc..6988584 100755 --- a/scripts/cluster/migrate-production.sh +++ b/scripts/cluster/migrate-production.sh @@ -192,7 +192,7 @@ SELECT 'gateway_wallet_transactions=' || count(*) FROM gateway_wallet_transactio SELECT 'gateway_upload_assets=' || count(*) FROM gateway_upload_assets; SELECT 'gateway_users=' || count(*) FROM gateway_users; SELECT 'gateway_api_keys=' || count(*) FROM gateway_api_keys; -SELECT 'gateway_providers=' || count(*) FROM gateway_providers; +SELECT 'model_catalog_providers=' || count(*) FROM model_catalog_providers; SELECT 'task_sample=' || md5(COALESCE(string_agg(id::text, ',' ORDER BY id), '')) FROM (SELECT id FROM gateway_tasks ORDER BY id LIMIT 100) sample; SQL