fix: add missing deleted_at columns to all plugin tables, fix system-settings response schema, fix transaction rollback in permissions

This commit is contained in:
Agent Zero
2026-07-24 10:34:38 +02:00
parent ecab11c19a
commit eaa71780d4
14 changed files with 96 additions and 16 deletions
@@ -8,6 +8,7 @@ CREATE TABLE IF NOT EXISTS mcp_server_configs (
description TEXT,
last_connected_at TIMESTAMPTZ,
created_by UUID,
deleted_at TIMESTAMPTZ,
created_at TIMESTAMPTZ DEFAULT NOW(),
updated_at TIMESTAMPTZ DEFAULT NOW()
);
@@ -0,0 +1,3 @@
-- Fix: McpServerConfig inherits TenantMixin -> SoftDeleteMixin (deleted_at)
-- Migration 0001 did not include this column, causing queries to crash
ALTER TABLE mcp_server_configs ADD COLUMN IF NOT EXISTS deleted_at TIMESTAMPTZ;