gitdataai/libs/migrate/sql/m20260428_000002_default_use_exact_true.sql
ZhenYi 18917b6de1
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions
feat(room): 修改 AI use_exact 默认值为 true
- room/src/ai.rs: use_exact 默认值从 false 改为 true
- 新增 migration: m20260428_000002_default_use_exact_true
2026-04-28 20:00:12 +08:00

5 lines
290 B
SQL

-- Fix: set use_exact = true for all existing room_ai records
-- This changes the default behavior so AI only responds when explicitly @mentioned.
-- Previously use_exact defaulted to false, causing AI to reply to every message.
UPDATE room_ai SET use_exact = true WHERE use_exact = false;