mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-01 17:00:21 +08:00
fix(data): 修复 global_models 插入时缺少 usage_count 字段导致的列数不匹配问题
This commit is contained in:
@@ -649,11 +649,12 @@ INSERT INTO global_models (
|
||||
default_price_per_request,
|
||||
default_tiered_pricing,
|
||||
supported_capabilities,
|
||||
usage_count,
|
||||
config,
|
||||
created_at,
|
||||
updated_at
|
||||
)
|
||||
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, NOW(), NOW())
|
||||
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, NOW(), NOW())
|
||||
RETURNING id
|
||||
"#,
|
||||
)
|
||||
@@ -664,6 +665,7 @@ RETURNING id
|
||||
.bind(record.default_price_per_request)
|
||||
.bind(record.default_tiered_pricing.clone())
|
||||
.bind(record.supported_capabilities.clone())
|
||||
.bind(0_i32)
|
||||
.bind(record.config.clone())
|
||||
.fetch_optional(&self.pool)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user