From 495e5e324a8d285dab7d4c44a17f3e7f465db825 Mon Sep 17 00:00:00 2001 From: Accusys Date: Sun, 4 Oct 2026 23:52:29 +0800 Subject: [PATCH] fix(migration): add dev schema support in migration runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **修復**: - postgres_db.rs:1695 添加 dev. schema 替換 - 支援 public. 和 dev. schema prefix 替換 **影響**: - 修復 3 個 migration 失敗(010, 021, 024) - 正確處理雙 schema 環境 **Ref**: M4 差異分析報告 --- src/core/db/postgres_db.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/db/postgres_db.rs b/src/core/db/postgres_db.rs index ac0876e7..c38a3be3 100644 --- a/src/core/db/postgres_db.rs +++ b/src/core/db/postgres_db.rs @@ -1714,7 +1714,9 @@ impl PostgresDb { let sql_with_schema = if schema != "public" { sql_content .replace("public.", &format!("{}.", schema)) + .replace("dev.", &format!("{}.", schema)) .replace("public::", &format!("{}::", schema)) + .replace("dev::", &format!("{}::", schema)) } else { sql_content.clone() };