ai-chatbot/lib/db/migrations_legacy/0026_add_fallback_model_ids.sql
Your Name 310dd115b2
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore(db): keep drizzle migrations folder journal-only
2026-02-14 01:30:51 +08:00

11 lines
470 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.

-- 为 AI 模型添加备用模型 ID 字段
-- 当主模型请求失败时,自动切换到备用模型
ALTER TABLE "AiModel"
ADD COLUMN IF NOT EXISTS "fallbackModelId1" VARCHAR(128),
ADD COLUMN IF NOT EXISTS "fallbackModelId2" VARCHAR(128);
COMMENT ON COLUMN "AiModel"."fallbackModelId1" IS '备用模型 ID 1,当主模型请求失败时优先使用';
COMMENT ON COLUMN "AiModel"."fallbackModelId2" IS '备用模型 ID 2,当备用模型 1 也失败时使用';