SuperAPI AI Directory

db-update

General & other

View repository

Updated 10-15 21:03

About this skill

/db-update — Database configuration update

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:

  1. If the user specified connection parameters (path, server) — use them directly
  2. If they specified the database by name — search by id / alias / name in .v8-project.json
  3. If they did not specify — match the current Git branch with databases[].branches
  4. If the branch did not match — use default Platform — v8path of the found database entry, otherwise the root v8path. Not set in either place — -V8Path do 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 "МоёРасширение"