数据库修复

This commit is contained in:
zhishi 2026-05-01 19:11:08 +08:00
parent bd60524fde
commit 498c598a67

View File

@ -66,6 +66,8 @@ export default async (knex: Knex): Promise<void> => {
// 添加新字段
await addColumn("o_agentDeploy", "maxOutputTokens", "integer");
await addColumn("o_assets", "audioBindState", "integer");
await addColumn("o_modelPrompt", "fileName", "string");
await addColumn("o_modelPrompt", "path", "string");
const vendorDataSelect = await u.db("o_vendorConfig").whereIn("id", ["deepseek", "atlascloud"]).select("*");
if (!vendorDataSelect.find((i) => i.id == "deepseek")) {
await u.db("o_vendorConfig").insert({