CM93 MySQL importer validated baseline
This commit is contained in:
10
scripts/import_cm93.ps1
Normal file
10
scripts/import_cm93.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
$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
|
||||
Reference in New Issue
Block a user