chore: 迁移项目路径 C:\NeoZQYY → C:\Project\NeoZQYY
开发环境从旧虚拟机 (DESKTOP-KGB0K5G) 迁移到新机器 (DESKTOP-D676QDA), 项目目录从 C:\NeoZQYY 变更为 C:\Project\NeoZQYY, 批量替换 126 个文件中的绝对路径引用。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -54,8 +54,8 @@ def _parse_tables(sql_text: str) -> dict[str, int]:
|
||||
# 加载 SQL 文件并建立映射
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
_CORE_SQL = Path(r"C:\NeoZQYY\db\etl_feiqiu\schemas\core.sql")
|
||||
_DWD_SQL = Path(r"C:\NeoZQYY\db\etl_feiqiu\schemas\dwd.sql")
|
||||
_CORE_SQL = Path(r"C:\Project\NeoZQYY\db\etl_feiqiu\schemas\core.sql")
|
||||
_DWD_SQL = Path(r"C:\Project\NeoZQYY\db\etl_feiqiu\schemas\dwd.sql")
|
||||
|
||||
_core_tables = _parse_tables(_CORE_SQL.read_text(encoding="utf-8"))
|
||||
_dwd_tables = _parse_tables(_DWD_SQL.read_text(encoding="utf-8"))
|
||||
|
||||
@@ -29,18 +29,18 @@ from hypothesis.strategies import sampled_from
|
||||
|
||||
# 源-目标目录映射(需求 5.1: ETL 业务代码,5.2: database,5.3: tests)
|
||||
MIGRATION_MAPPINGS: List[Tuple[str, str]] = [
|
||||
(r"C:\ZQYY\FQ-ETL\api", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\api"),
|
||||
(r"C:\ZQYY\FQ-ETL\cli", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\cli"),
|
||||
(r"C:\ZQYY\FQ-ETL\config", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\config"),
|
||||
(r"C:\ZQYY\FQ-ETL\loaders", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\loaders"),
|
||||
(r"C:\ZQYY\FQ-ETL\models", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\models"),
|
||||
(r"C:\ZQYY\FQ-ETL\orchestration", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\orchestration"),
|
||||
(r"C:\ZQYY\FQ-ETL\scd", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\scd"),
|
||||
(r"C:\ZQYY\FQ-ETL\tasks", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\tasks"),
|
||||
(r"C:\ZQYY\FQ-ETL\utils", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\utils"),
|
||||
(r"C:\ZQYY\FQ-ETL\quality", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\quality"),
|
||||
(r"C:\ZQYY\FQ-ETL\tests\unit", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\tests\unit"),
|
||||
(r"C:\ZQYY\FQ-ETL\tests\integration", r"C:\NeoZQYY\apps\etl\connectors\feiqiu\tests\integration"),
|
||||
(r"C:\ZQYY\FQ-ETL\api", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\api"),
|
||||
(r"C:\ZQYY\FQ-ETL\cli", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\cli"),
|
||||
(r"C:\ZQYY\FQ-ETL\config", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\config"),
|
||||
(r"C:\ZQYY\FQ-ETL\loaders", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\loaders"),
|
||||
(r"C:\ZQYY\FQ-ETL\models", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\models"),
|
||||
(r"C:\ZQYY\FQ-ETL\orchestration", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\orchestration"),
|
||||
(r"C:\ZQYY\FQ-ETL\scd", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\scd"),
|
||||
(r"C:\ZQYY\FQ-ETL\tasks", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\tasks"),
|
||||
(r"C:\ZQYY\FQ-ETL\utils", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\utils"),
|
||||
(r"C:\ZQYY\FQ-ETL\quality", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\quality"),
|
||||
(r"C:\ZQYY\FQ-ETL\tests\unit", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\tests\unit"),
|
||||
(r"C:\ZQYY\FQ-ETL\tests\integration", r"C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\tests\integration"),
|
||||
]
|
||||
|
||||
EXCLUDE_DIRS = {"__pycache__", ".pytest_cache", ".hypothesis"}
|
||||
|
||||
@@ -20,7 +20,7 @@ WORKSPACE_MEMBERS = [
|
||||
"packages/shared",
|
||||
]
|
||||
|
||||
MONOREPO_ROOT = r"C:\NeoZQYY"
|
||||
MONOREPO_ROOT = r"C:\Project\NeoZQYY"
|
||||
|
||||
|
||||
@settings(max_examples=100)
|
||||
|
||||
@@ -14,7 +14,7 @@ from hypothesis import given, settings
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# Monorepo 根目录
|
||||
MONOREPO_ROOT = r"C:\NeoZQYY"
|
||||
MONOREPO_ROOT = r"C:\Project\NeoZQYY"
|
||||
|
||||
# 一级目录列表(需求 1.5 定义)
|
||||
# 仅包含实际存在的一级目录
|
||||
|
||||
@@ -21,7 +21,7 @@ from hypothesis import given, settings, assume
|
||||
from hypothesis.strategies import sampled_from, integers
|
||||
|
||||
# ── 路径常量 ──────────────────────────────────────────────────────
|
||||
SCHEMAS_DIR = os.path.join(r"C:\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
SCHEMAS_DIR = os.path.join(r"C:\Project\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
APP_SQL = os.path.join(SCHEMAS_DIR, "app.sql")
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ from hypothesis import given, settings
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# ── 路径常量 ──────────────────────────────────────────────
|
||||
SCHEMAS_DIR = os.path.join(r"C:\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
SCHEMAS_DIR = os.path.join(r"C:\Project\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
|
||||
# 旧 schema 文件(billiards_ods / billiards_dws)
|
||||
OLD_ODS_FILE = os.path.join(SCHEMAS_DIR, "schema_ODS_doc.sql")
|
||||
|
||||
@@ -14,8 +14,8 @@ from hypothesis import given, settings
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# ── 路径常量 ──────────────────────────────────────────────
|
||||
SCHEMAS_DIR = os.path.join(r"C:\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
ZQYY_APP_DIR = os.path.join(r"C:\NeoZQYY", "db", "zqyy_app", "schemas")
|
||||
SCHEMAS_DIR = os.path.join(r"C:\Project\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
ZQYY_APP_DIR = os.path.join(r"C:\Project\NeoZQYY", "db", "zqyy_app", "schemas")
|
||||
|
||||
APP_SQL = os.path.join(SCHEMAS_DIR, "app.sql")
|
||||
DWS_SQL = os.path.join(SCHEMAS_DIR, "dws.sql")
|
||||
|
||||
@@ -19,7 +19,7 @@ from hypothesis import given, settings
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# ── 路径常量 ──────────────────────────────────────────────
|
||||
MONOREPO_ROOT = r"C:\NeoZQYY"
|
||||
MONOREPO_ROOT = r"C:\Project\NeoZQYY"
|
||||
STEERING_DIR = os.path.join(MONOREPO_ROOT, ".kiro", "steering")
|
||||
|
||||
# 旧仓库路径模式(需要检测并确认已清除的字符串)
|
||||
|
||||
@@ -18,7 +18,7 @@ from hypothesis import given, settings
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# ── 路径常量 ──────────────────────────────────────────────
|
||||
MONOREPO_ROOT = r"C:\NeoZQYY"
|
||||
MONOREPO_ROOT = r"C:\Project\NeoZQYY"
|
||||
|
||||
DB_CONFIGS = {
|
||||
"etl_feiqiu": {
|
||||
|
||||
Reference in New Issue
Block a user