Files
CM95/scripts/import_cm93.ps1
2026-09-02 09:50:12 +08:00

11 lines
321 B
PowerShell
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
$ErrorActionPreference = "Stop"
if (-not (Test-Path ".\.venv\Scripts\cm93db.exe")) {
throw "未发现 cm93db,请先运行 scripts\setup_env.ps1"
}
if (-not (Test-Path ".env")) {
throw "未发现 .env,请从 .env.example 复制并配置 CM93_SOURCE_DIR / MySQL"
}
& ".\.venv\Scripts\cm93db.exe" import @args