mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-02 01:29:58 +08:00
Merge pull request #10255 from joei4cm/fix/bot-lifecycle-view-state-fixture-dup
fix(test): 去掉 botLifecycleService fixture 里重复的 mcp_app_view_states 建表
This commit is contained in:
@@ -100,11 +100,6 @@ function createDatabase(): Database.Database {
|
||||
CREATE TABLE bot_delegations (id TEXT PRIMARY KEY, requesting_bot_id TEXT, target_bot_id TEXT);
|
||||
CREATE TABLE bot_direct_message_threads (id TEXT PRIMARY KEY, bot_a_id TEXT, bot_b_id TEXT);
|
||||
CREATE TABLE bot_direct_messages (id TEXT PRIMARY KEY, sender_bot_id TEXT, recipient_bot_id TEXT);
|
||||
-- The real deletion transaction also clears deleted tasks' saved MCP views.
|
||||
CREATE TABLE mcp_app_view_states (
|
||||
message_id TEXT PRIMARY KEY, session_id TEXT NOT NULL, server_id TEXT NOT NULL,
|
||||
server_revision TEXT NOT NULL, plugin_instance TEXT, state_json TEXT NOT NULL, byte_length INTEGER NOT NULL
|
||||
);
|
||||
INSERT INTO bot_profiles (
|
||||
id, display_name, description, avatar, avatar_color, status,
|
||||
current_version, canonical_session_id, created_at, updated_at
|
||||
|
||||
Reference in New Issue
Block a user