Files
schoolNews/schoolNewsServ/.bin/mysql/sql/add_embedding_model_provider.sql
2025-11-06 19:08:20 +08:00

19 lines
638 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ========================================
-- 添加 embedding_model_provider 字段
-- ========================================
-- 用途:在 tb_ai_knowledge 表中添加向量模型提供商字段
-- 执行时间2025-11-06
-- 注意:如果该字段已存在,请忽略此脚本
-- ========================================
USE `school_news`;
-- 检查并添加 embedding_model_provider 字段
ALTER TABLE `tb_ai_knowledge`
ADD COLUMN `embedding_model_provider` VARCHAR(100) DEFAULT NULL COMMENT '向量模型提供商'
AFTER `embedding_model`;
-- 完成
SELECT 'embedding_model_provider 字段添加成功!' AS message;