fix(migration): add dev schema support in migration runner
**修復**: - postgres_db.rs:1695 添加 dev. schema 替換 - 支援 public. 和 dev. schema prefix 替換 **影響**: - 修復 3 個 migration 失敗(010, 021, 024) - 正確處理雙 schema 環境 **Ref**: M4 差異分析報告
This commit is contained in:
@@ -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()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user