mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-06-11 14:11:29 +00:00
47cc11bfc0
Persist friendly names (display_name, username, chat_title) from channel handlers into sessions, user profiles, and pairing records. Web UI renders metadata with graceful fallback to raw IDs. - Add migration 000011: metadata JSONB columns on sessions, user_agent_profiles, pairing_requests, paired_devices - Extend SessionStore/AgentStore/PairingStore interfaces with metadata ops - Extract and persist channel metadata in gateway consumer - Extend sessions.patch and add PATCH instances metadata HTTP endpoint - Update frontend sessions page, detail page, and instances tab - Delete legacy file-based internal/pairing/service.go - Update docs references to reflect DB-backed pairing
5 lines
325 B
SQL
5 lines
325 B
SQL
ALTER TABLE sessions ADD COLUMN IF NOT EXISTS metadata JSONB DEFAULT '{}';
|
|
ALTER TABLE user_agent_profiles ADD COLUMN IF NOT EXISTS metadata JSONB DEFAULT '{}';
|
|
ALTER TABLE pairing_requests ADD COLUMN IF NOT EXISTS metadata JSONB DEFAULT '{}';
|
|
ALTER TABLE paired_devices ADD COLUMN IF NOT EXISTS metadata JSONB DEFAULT '{}';
|