5245475e0f
- Introduced a new `channel` field in the Knowledge struct and associated request types to track the source channel (e.g., "web", "api", "browser_extension"). - Updated various frontend components to display channel information and enhance user experience with channel labels. - Enhanced localization files to support channel labels in English and Chinese. - Modified backend services and database migrations to accommodate the new channel feature, ensuring consistent tracking across knowledge entries. - Refactored related functions to integrate channel handling, improving overall knowledge management and context.
5 lines
220 B
SQL
5 lines
220 B
SQL
-- Migration: 000025_message_channel (rollback)
|
|
-- Description: Remove channel column from messages and knowledge
|
|
ALTER TABLE messages DROP COLUMN IF EXISTS channel;
|
|
ALTER TABLE knowledges DROP COLUMN IF EXISTS channel;
|