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
@@ -11,6 +11,7 @@ CREATE TABLE IF NOT EXISTS unified_search_providers (
plugin_name VARCHAR(80) NOT NULL,
is_active BOOLEAN NOT NULL DEFAULT TRUE,
config JSONB NOT NULL DEFAULT '{}'::jsonb,
deleted_at TIMESTAMPTZ,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
UNIQUE(tenant_id, entity_type)
@@ -27,7 +28,9 @@ CREATE TABLE IF NOT EXISTS unified_search_index_log (
action VARCHAR(20) NOT NULL,
status VARCHAR(20) NOT NULL DEFAULT 'pending',
error_message TEXT,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
deleted_at TIMESTAMPTZ,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
CREATE INDEX IF NOT EXISTS ix_usil_tenant ON unified_search_index_log(tenant_id);