refactor: Remove unused SQL migration files and clean up docker-compose configurations
- Deleted several SQL migration files related to agent configuration, cleanup of unreferenced models, MCP services, and web search configuration. - Updated docker-compose files to remove references to obsolete SQL migration scripts, streamlining the development environment setup. - Improved code maintainability by eliminating unnecessary files and configurations.
This commit is contained in:
@@ -33,17 +33,6 @@ WITH tenant_source AS (
|
||||
WHERE kb.tenant_id IS NOT NULL
|
||||
AND kb.rerank_model_id IS NOT NULL
|
||||
AND kb.rerank_model_id <> ''
|
||||
|
||||
UNION
|
||||
|
||||
-- VLM 模型(存储在 vlm_config JSON 的 model_id 字段中)
|
||||
SELECT
|
||||
(kb.vlm_config ->> 'model_id') AS model_id,
|
||||
kb.tenant_id
|
||||
FROM knowledge_bases kb
|
||||
WHERE kb.tenant_id IS NOT NULL
|
||||
AND kb.vlm_config ->> 'model_id' IS NOT NULL
|
||||
AND kb.vlm_config ->> 'model_id' <> ''
|
||||
)
|
||||
UPDATE models m
|
||||
SET tenant_id = ts.tenant_id
|
||||
|
||||
Reference in New Issue
Block a user