Files
qihuaiflow/migrations/017_add_marketapp_capability.sql
T

11 lines
607 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.
-- 017: 为 market_apps 增加 capability 列(能力分类:text/thinking/vision/tool/image/audio/asr/ocr/embedding/rerank/video)
-- 幂等:列已存在则跳过
SET @col = (SELECT COUNT(*) FROM information_schema.columns
WHERE table_schema = DATABASE() AND table_name = 'market_apps' AND column_name = 'capability');
SET @sql = IF(@col = 0,
'ALTER TABLE market_apps ADD COLUMN capability VARCHAR(20) NULL COMMENT \'能力分类:text/thinking/vision/tool/image/audio/asr/ocr/embedding/rerank/video\'',
'SELECT 1');
PREPARE stmt FROM @sql;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;