Applies changes of the main configuration to the database configuration (/UpdateDBCfg) —
as a separate step after loading. For /db-load-xml и /db-load-git the same is done by the
key -UpdateDB.
Usage
/db-update [database]
/db-update dev
/db-update dev -Dynamic on
Connection parameters
Read .v8-project.json from the project root and resolve the database:
- If the user specified connection parameters (path, server) — use them directly
- If they specified the database by name — search by id / alias / name in
.v8-project.json - If they did not specify — match the current Git branch with
databases[].branches - If the branch did not match — use
defaultPlatform —v8pathof the found database entry, otherwise the rootv8path. Not set in either place —-V8Pathdo not pass. If the file does not exist — suggest/db-list add. If the used database is not registered — after execution suggest adding it via/db-list add.
Command
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-update.ps1" <параметры>
Script parameters
| Parameter | Required | Description |
|---|---|---|
-V8Path <путь> |
no | Platform bin directory, or full path to 1cv8.exe / ibcmd.exe |
-InfoBasePath <путь> |
* | File database |
-InfoBaseServer <сервер> |
* | 1C server (for a server database) |
-InfoBaseRef <имя> |
* | Database name on the server |
-UserName <имя> |
no | User name |
-Password <пароль> |
no | Password |
-Extension <имя> |
no | Update extension |
-AllExtensions |
no | Update all extensions |
-NoApplyCheck |
no | Do not check extension applicability after update |
-Dynamic <on/off> |
no | on — dynamic update, without exclusive access to the database; off — disable |
-Server |
no | Server-side update |
-WarningsAsErrors |
no | Treat warnings as errors |
-AdditionalV8Arguments <список> |
no | Additional launch arguments 1cv8.exe comma-separated, e.g. /UseHwLicenses+ |
-AdditionalIbcmdArguments <список> |
no | Additional arguments ibcmd comma-separated, in the form --ключ=значение |
*— either-InfoBasePath, or a pair-InfoBaseServer+-InfoBaseRef
Background update (server database)
| Parameter | Description |
|---|---|
-BackgroundStart |
Start background update |
-BackgroundFinish |
Wait for completion |
-BackgroundCancel |
Cancel |
-BackgroundSuspend |
Pause |
-BackgroundResume |
Resume |
Examples
# Обычное обновление (файловая база)
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-update.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin"
# Динамическое обновление
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-update.ps1" -InfoBaseServer "srv01" -InfoBaseRef "MyDB" -UserName "Admin" -Password "secret" -Dynamic on
# Обновление расширения
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-update.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -Extension "МоёРасширение"