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:
wizardchen
2025-12-01 21:54:04 +08:00
parent 8ad57a7e20
commit e66ace9c14
29 changed files with 3 additions and 1228 deletions
@@ -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